From 648bb6f75a801e6d605fcd061f0b14fecc07a8be Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 8 Feb 2005 20:58:10 +0000 Subject: lucho changes --- src/libauth/auth_getuserpasswd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/libauth/auth_getuserpasswd.c') 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; } -- cgit v1.2.3