Project

General

Profile

Actions

Bug #1352

closed

setuid/setuid called without checking result code

Added by Benny Lyne Amorsen - over 12 years ago. Updated over 12 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
Start date:
2012-10-22
Due date:
% Done:

0%

Estimated time:
Found in version:
v3.3-77-g72d90ee
Affected Versions:

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

Also available in: Atom PDF