diff options
author | Steve Dickson <steved@redhat.com> | 2008-02-08 14:27:57 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-02-08 14:27:57 -0500 |
commit | 40009ddc661a43883d0f7841f6bbd71e0c9b530a (patch) | |
tree | 9c655d022f27e4d2719c19a86a44fdb82144ccb1 /src/rpcbind.c | |
parent | a28ded4f011bcc3f75a359f5fe842bf8cd2b00f3 (diff) | |
download | rpcbind-40009ddc661a43883d0f7841f6bbd71e0c9b530a.tar.gz |
Fixed a warning in pmap_svc.c
Cleaned up read_struct().
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src/rpcbind.c')
-rw-r--r-- | src/rpcbind.c | 3 |
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 |