die("setgroups");
}
if (getgroups(0, NULL) != 0) {
- die_fmt("failed to drop all supplementary groups");
+ die_fmt("failed to drop all supplementary groups\n");
}
/* Dropping groups may require privileges, do that first. */
}
if ( uid != ruid || uid != euid || uid != suid
|| gid != rgid || gid != egid || gid != sgid) {
- die_fmt("failed to drop privileges");
+ die_fmt("failed to drop privileges\n");
}
}
/* Just to be safe. */
if (setuid(0) != -1) {
- die_fmt("failed to drop privileges (setuid)");
+ die_fmt("failed to drop privileges (setuid)\n");
}
}