]> arthur.barton.de Git - netatalk.git/commitdiff
typo fixes patch from Burkhard Schmidt <bs@cpfs.mpg.de>
authorrufustfirefly <rufustfirefly>
Mon, 7 May 2001 20:05:32 +0000 (20:05 +0000)
committerrufustfirefly <rufustfirefly>
Mon, 7 May 2001 20:05:32 +0000 (20:05 +0000)
etc/afpd/quota.c
etc/uams/uams_passwd.c

index 522fff9fc53bcbbd6ade8d20e0ebad789b1bf29d..1718d33ee7b15dd23676692f1290dac2b5768026 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: quota.c,v 1.4 2001-05-03 13:57:44 rufustfirefly Exp $
+ * $Id: quota.c,v 1.5 2001-05-07 20:05:32 rufustfirefly Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -34,7 +34,7 @@ int quotactl(int cmd, const char *special, int id, caddr_t addr)
 #endif
 
 
-#if defined(USE_MNTTAB_H) || defined(__svr4__)
+#if defined(HAVE_SYS_MNTTAB_H) || defined(__svr4__)
 /*
  * Return the mount point associated with the filesystem
  * on which "file" resides.  Returns NULL on failure.
@@ -105,7 +105,7 @@ special( file, nfs )
 }
 
 #else /* ultrix */
-#if defined(USE_MOUNT_H) || defined(BSD4_4) || defined(_IBMR2)
+#if defined(HAVE_MOUNT_H) || defined(BSD4_4) || defined(_IBMR2)
 
 static char *
 special( file, nfs )
@@ -226,6 +226,7 @@ static int getfsquota(vol, uid, dq)
                        seteuid( uid );
                        return ( AFPERR_PARAM );
                }
+               seteuid( uid );
        }
 
 #else /* BSD4_4 */
index ea8fb53131f423e231e7b65b3778533fdc4012da..55247a53240b953a4f19db6fb678bc2262d81d1c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: uams_passwd.c,v 1.7 2001-05-03 13:57:44 rufustfirefly Exp $
+ * $Id: uams_passwd.c,v 1.8 2001-05-07 20:05:34 rufustfirefly Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) 
@@ -99,7 +99,7 @@ static int passwd_login(void *obj, struct passwd **uam_pwd,
        if ( pr == NULL )
                return AFPERR_NOTAUTH;
        if ( strcmp ( bigcrypt ( ibuf, pr->ufld.fd_encrypt ),
-               pr->ufld.fd_encrypt == 0 )
+               pr->ufld.fd_encrypt == 0 )
       return AFP_OK;
 #else /* DIGITAL_UNIX_SECURITY */
     p = crypt( ibuf, pwd->pw_passwd );