Actions
Bug #1352
closedsetuid/setuid called without checking result code
Bug #1352:
setuid/setuid called without checking result code
Start date:
2012-10-22
Due date:
% Done:
0%
Estimated time:
Description
In main.c, setuid() and setgid() are called, but the result code is thrown away. This could lead to Tvheadend running with unexpected privileges.
Fedora is now compiling by default with -Werror=unused-result which prevents compilation of Tvheadend, but that can be turned off easily. If I read git blame correctly, the problem existed in the first version checked into git.
Actions