+ safe_fd(passwdpipe[0], 1);
+ } else {
+ safe_fd(-1, 0);
+ }
+
+ if (need_root) {
+ become_root();
+ } else {
+ /* if our real userid is zero, the child shouldn't inherit
+ * that, so drop privs permanently */
+ if (getuid() == 0 && !set_root_privs(-1)) {
+ error(_("could not drop root privileges"));
+ }