Use EOPNOTSUPP instead of EBADE.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Tue, 29 May 2007 15:26:51 +0000 (15:26 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Tue, 29 May 2007 15:26:51 +0000 (15:26 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@1050 959494ce-11ee-0310-bf91-de5d638817bd

daemon/auth-unix.c

index 47a1c24..6f0e7c6 100644 (file)
@@ -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) {