Don't set user info unless stated.
This commit is contained in:
parent
eafbed0366
commit
937b1b2abf
@ -1072,9 +1072,9 @@ int start_stop_daemon(int argc, char **argv)
|
||||
eerrorx("%s: unable to set groupid to %d", applet, gid);
|
||||
if (changeuser && initgroups(changeuser, gid))
|
||||
eerrorx("%s: initgroups (%s, %d)", applet, changeuser, gid);
|
||||
if (uid && setuid(uid))
|
||||
if (uid) {
|
||||
if (setuid(uid))
|
||||
eerrorx ("%s: unable to set userid to %d", applet, uid);
|
||||
else {
|
||||
pw = getpwuid(uid);
|
||||
if (pw) {
|
||||
if (!sethome) {
|
||||
|
Loading…
Reference in New Issue
Block a user