Skip to content

Commit

Permalink
main() must fail on privsep_init() errors, it must not run
Browse files Browse the repository at this point in the history
without privilege separation as privsep is expected.
  • Loading branch information
segoon authored and reubenhwk committed Oct 4, 2011
1 parent 92e22ca commit 2c50375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radvd.c
Expand Up @@ -271,7 +271,7 @@ main(int argc, char *argv[])
if (!singleprocess) {
dlog(LOG_DEBUG, 3, "Initializing privsep");
if (privsep_init() < 0)
flog(LOG_WARNING, "Failed to initialize privsep.");
perror("Failed to initialize privsep.");
}

if (drop_root_privileges(username) < 0) {
Expand Down

0 comments on commit 2c50375

Please sign in to comment.