X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fauth-unix.c;h=00266e161b6b2407df7e6fb4288e10ee83eb4e88;hb=3c7f2d14ba774a61baea64c9180b8d70cbe3e020;hp=47a1c24b895a0ae6230d32bceb82966d5ba7f6bd;hpb=a8c5ada654f0ff7b7c8bb9542fcae9c4a917f353;p=doldaconnect.git diff --git a/daemon/auth-unix.c b/daemon/auth-unix.c index 47a1c24..00266e1 100644 --- a/daemon/auth-unix.c +++ b/daemon/auth-unix.c @@ -1,6 +1,6 @@ /* * Dolda Connect - Modular multiuser Direct Connect-style client - * Copyright (C) 2004 Fredrik Tolf (fredrik@dolda2000.com) + * Copyright (C) 2004 Fredrik Tolf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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) {