From 81c8725d44d339e291e20bcd6dd1bc31142092e0 Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 20 Jan 1998 12:53:43 +0000 Subject: Converted to Lite2 mount interface - decide filesystem types by name instead of by number. --- usr.bin/quota/quota.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/quota') diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c index a761cee..e15164a 100644 --- a/usr.bin/quota/quota.c +++ b/usr.bin/quota/quota.c @@ -45,7 +45,7 @@ static const char copyright[] = static char sccsid[] = "from: @(#)quota.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: quota.c,v 1.7 1997/08/04 06:45:11 charnier Exp $"; #endif /* not lint */ /* @@ -470,11 +470,11 @@ getprivs(id, quotatype) == NULL) errx(2, "out of memory"); } - if (fst[i].f_type == MOUNT_NFS) { + if (strcmp(fst[i].f_fstypename, "nfs") == 0) { if (getnfsquota(&fst[i], NULL, qup, id, quotatype) == 0) continue; - } else if (fst[i].f_type == MOUNT_UFS) { + } else if (strcmp(fst[i].f_fstypename, "ffs") == 0) { /* * XXX * UFS filesystems must be in /etc/fstab, and must -- cgit v1.1