summaryrefslogtreecommitdiff
path: root/src/rpcbind.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpcbind.c')
-rw-r--r--src/rpcbind.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/rpcbind.c b/src/rpcbind.c
index 650cd29..949ece2 100644
--- a/src/rpcbind.c
+++ b/src/rpcbind.c
@@ -85,7 +85,6 @@ char *rpcbinduser = RPCBIND_USER;
#else
char *rpcbinduser = NULL;
#endif
-uid_t rpc_uid;
/* who to suid to if -s is given */
#define RUN_AS "daemon"
@@ -209,7 +208,6 @@ main(int argc, char *argv[])
err(1, "fork failed");
}
- rpc_uid = 0;
if (runasdaemon || rpcbinduser) {
struct passwd *p;
char *id = runasdaemon ? RUN_AS : rpcbinduser;
@@ -222,7 +220,6 @@ main(int argc, char *argv[])
syslog(LOG_ERR, "setuid to '%s' failed: %m", id);
exit(1);
}
- rpc_uid = p->pw_uid;
}
#ifdef WARMSTART