diff options
| author | rsc <devnull@localhost> | 2005-02-08 20:58:10 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2005-02-08 20:58:10 +0000 |
| commit | 648bb6f75a801e6d605fcd061f0b14fecc07a8be (patch) | |
| tree | ae995dfa5c1807dfa8902f5120ef6933911aebb5 /src/libauth/auth_getuserpasswd.c | |
| parent | fa467fbe51e3aba23fce6639afd8939c046c8c2d (diff) | |
| download | plan9port-648bb6f75a801e6d605fcd061f0b14fecc07a8be.tar.gz plan9port-648bb6f75a801e6d605fcd061f0b14fecc07a8be.zip | |
lucho changes
Diffstat (limited to 'src/libauth/auth_getuserpasswd.c')
| -rw-r--r-- | src/libauth/auth_getuserpasswd.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libauth/auth_getuserpasswd.c b/src/libauth/auth_getuserpasswd.c index 4d66dcec..4a40b263 100644 --- a/src/libauth/auth_getuserpasswd.c +++ b/src/libauth/auth_getuserpasswd.c @@ -27,7 +27,6 @@ auth_getuserpasswd(AuthGetkey *getkey, char *fmt, ...) { AuthRpc *rpc; char *f[3], *p, *params; - int fd; va_list arg; UserPasswd *up; @@ -35,10 +34,7 @@ auth_getuserpasswd(AuthGetkey *getkey, char *fmt, ...) rpc = nil; params = nil; - fd = open("/mnt/factotum/rpc", ORDWR); - if(fd < 0) - goto out; - rpc = auth_allocrpc(fd); + rpc = auth_allocrpc(); if(rpc == nil) goto out; quotefmtinstall(); /* just in case */ @@ -70,6 +66,5 @@ auth_getuserpasswd(AuthGetkey *getkey, char *fmt, ...) out: free(params); auth_freerpc(rpc); - close(fd); return up; } |
