Clarified the dscp-tos documentation a bit.
[doldaconnect.git] / daemon / auth-unix.c
index 47a1c24..00266e1 100644 (file)
@@ -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 <fredrik@dolda2000.com>
  *  
  *  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) {