Project

General

Profile

Bug #2331

-u, --user and -g, --group command line switches don't work without -f --fork switch

Added by Dreamcat 4 about 10 years ago. Updated about 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2014-09-26
Due date:
% Done:

0%

Estimated time:
Found in version:
ba136c5 - master - 26 Sept 2014
Affected Versions:

Description

Hi,

It seems that the calls to setgroups() setgid() and and setuid() are nested within if(opt_fork) block. The result of that arrangement means that specifying either -u or -g switches has no effect, without also the -f --fork option. Code affected is here:

https://github.com/tvheadend/tvheadend/blob/ba136c5392176ce16eab602847caf0cdd933417d/src/main.c#L700-L736

If can be done independently of forking, then that would be preferable. Many thanks for the consideration.

History

#1

Updated by Jaroslav Kysela about 10 years ago

  • Status changed from New to Fixed

Fixed in v3.9-1579-gf918323 .

Also available in: Atom PDF