=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/quota/quota.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/quota/quota.c 1996/08/07 14:08:52 1.7 --- src/usr.bin/quota/quota.c 1996/10/28 04:08:21 1.8 *************** *** 1,4 **** ! /* $OpenBSD: quota.c,v 1.7 1996/08/07 14:08:52 etheisen Exp $ */ /* * Copyright (c) 1980, 1990, 1993 --- 1,4 ---- ! /* $OpenBSD: quota.c,v 1.8 1996/10/28 04:08:21 millert Exp $ */ /* * Copyright (c) 1980, 1990, 1993 *************** *** 44,50 **** #ifndef lint /*static char sccsid[] = "from: @(#)quota.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: quota.c,v 1.7 1996/08/07 14:08:52 etheisen Exp $"; #endif /* not lint */ /* --- 44,50 ---- #ifndef lint /*static char sccsid[] = "from: @(#)quota.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: quota.c,v 1.8 1996/10/28 04:08:21 millert Exp $"; #endif /* not lint */ /* *************** *** 207,216 **** myuid = getuid(); if (pwd->pw_uid != myuid && myuid != 0) { fprintf(stderr, "quota: %s (uid %d): permission denied\n", ! name, pwd->pw_uid); return; } ! showquotas(USRQUOTA, pwd->pw_uid, name); } /* --- 207,216 ---- myuid = getuid(); if (pwd->pw_uid != myuid && myuid != 0) { fprintf(stderr, "quota: %s (uid %d): permission denied\n", ! pwd->pw_name, pwd->pw_uid); return; } ! showquotas(USRQUOTA, pwd->pw_uid, pwd->pw_name); } /* *************** *** 277,287 **** if (i >= ngroups && getuid() != 0) { fprintf(stderr, "quota: %s (gid %d): permission denied\n", ! name, grp->gr_gid); return; } } ! showquotas(GRPQUOTA, grp->gr_gid, name); } showquotas(type, id, name) --- 277,287 ---- if (i >= ngroups && getuid() != 0) { fprintf(stderr, "quota: %s (gid %d): permission denied\n", ! grp->gr_name, grp->gr_gid); return; } } ! showquotas(GRPQUOTA, grp->gr_gid, grp->gr_name); } showquotas(type, id, name)