From 75a50bc29991e6cfc5f3031b3ae71bad0ffca376 Mon Sep 17 00:00:00 2001 From: fredrik Date: Tue, 29 May 2007 15:26:51 +0000 Subject: [PATCH] Use EOPNOTSUPP instead of EBADE. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@1050 959494ce-11ee-0310-bf91-de5d638817bd --- daemon/auth-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/auth-unix.c b/daemon/auth-unix.c index 47a1c24..6f0e7c6 100644 --- a/daemon/auth-unix.c +++ b/daemon/auth-unix.c @@ -64,7 +64,7 @@ static int unixauth(struct authhandle *auth, struct socket *sk, char *passdata) if((pwd = getpwnam(data->username)) == NULL) return(AUTH_ERR); if(sk->ucred.uid == -1) { - errno = EBADE; + errno = EOPNOTSUPP; /* Bleh */ return(AUTH_ERR); } if(pwd->pw_uid == sk->ucred.uid) { -- 2.11.0