fix(feuille.c): print non-root warning before running in background
This commit is contained in:
parent
58db0b6b33
commit
d453de5108
1 changed files with 5 additions and 5 deletions
10
feuille.c
10
feuille.c
|
@ -247,6 +247,11 @@ int main(int argc, char *argv[])
|
|||
|
||||
uid = user->pw_uid;
|
||||
gid = user->pw_gid;
|
||||
} else {
|
||||
puts("");
|
||||
syslog(LOG_WARNING, "running as non-root user.");
|
||||
syslog(LOG_WARNING, "`chroot' and user switching have been disabled.");
|
||||
puts("");
|
||||
}
|
||||
|
||||
|
||||
|
@ -280,11 +285,6 @@ int main(int argc, char *argv[])
|
|||
setgid(gid);
|
||||
setuid(uid);
|
||||
|
||||
} else {
|
||||
puts("");
|
||||
syslog(LOG_WARNING, "running as non-root user.");
|
||||
syslog(LOG_WARNING, "`chroot' and user switching have been disabled.");
|
||||
puts("");
|
||||
}
|
||||
|
||||
/* OpenBSD-only security measures */
|
||||
|
|
Reference in a new issue