From: fredrik Date: Tue, 29 May 2007 15:26:51 +0000 (+0000) Subject: Use EOPNOTSUPP instead of EBADE. X-Git-Tag: 0.4~28 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=75a50bc29991e6cfc5f3031b3ae71bad0ffca376 Use EOPNOTSUPP instead of EBADE. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@1050 959494ce-11ee-0310-bf91-de5d638817bd --- 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) {