Bug #2331
-u, --user and -g, --group command line switches don't work without -f --fork switch
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:
If can be done independently of forking, then that would be preferable. Many thanks for the consideration.
History
Updated by Jaroslav Kysela about 10 years ago
- Status changed from New to Fixed
Fixed in v3.9-1579-gf918323 .