summaryrefslogtreecommitdiff
path: root/usr.sbin/edquota/edquota.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-07 05:28:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-07 05:28:07 +0000
commit1ec9ac839c29d0c6d5074874a3da9edc709256cd (patch)
tree5225ea94feae058b6ff9063a33db248aff473ee9 /usr.sbin/edquota/edquota.c
parent01b9b71d86a5edcc543a88b2d407927fa52c042d (diff)
accept either ffs or ufs for filesystem name
Diffstat (limited to 'usr.sbin/edquota/edquota.c')
-rw-r--r--usr.sbin/edquota/edquota.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index 93244a2982f..cbd802895f2 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)edquota.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: edquota.c,v 1.3 1995/11/06 21:40:46 deraadt Exp $";
+static char *rcsid = "$Id: edquota.c,v 1.4 1996/01/07 05:28:04 deraadt Exp $";
#endif /* not lint */
/*
@@ -221,7 +221,8 @@ getprivs(id, quotatype)
quphead = (struct quotause *)0;
qcmd = QCMD(Q_GETQUOTA, quotatype);
while (fs = getfsent()) {
- if (strcmp(fs->fs_vfstype, "ffs"))
+ if (strcmp(fs->fs_vfstype, "ffs") &&
+ strcmp(fs->fs_vfstype, "ufs"))
continue;
if (!hasquota(fs, quotatype, &qfpathname))
continue;