X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fquota.c;h=c06a2130f9c87996dd22e2747b33d1ac38242b30;hb=f633dd24a3f9c6bb944faa5bc5175869cf6cd07f;hp=522fff9fc53bcbbd6ade8d20e0ebad789b1bf29d;hpb=d53755639af5ffd3b2543eb1e39e2dda262e530d;p=netatalk.git diff --git a/etc/afpd/quota.c b/etc/afpd/quota.c index 522fff9f..c06a2130 100644 --- a/etc/afpd/quota.c +++ b/etc/afpd/quota.c @@ -1,5 +1,5 @@ /* - * $Id: quota.c,v 1.4 2001-05-03 13:57:44 rufustfirefly Exp $ + * $Id: quota.c,v 1.7 2001-06-01 13:59:46 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_SYS_MOUNT_H) && !defined(__linux__)) || 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 */