summaryrefslogtreecommitdiff
path: root/sbin
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 /sbin
parent01b9b71d86a5edcc543a88b2d407927fa52c042d (diff)
accept either ffs or ufs for filesystem name
Diffstat (limited to 'sbin')
-rw-r--r--sbin/quotacheck/quotacheck.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index 6d308c52866..69cf395dfe8 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -219,8 +219,10 @@ needchk(fs)
register struct quotaname *qnp;
char *qfnp;
- if (strcmp(fs->fs_vfstype, "ffs") ||
- strcmp(fs->fs_type, FSTAB_RW))
+ if (strcmp(fs->fs_type, FSTAB_RW))
+ return (NULL);
+ if (strcmp(fs->fs_vfstype, "ffs") &&
+ strcmp(fs->fs_vfstype, "ufs"))
return (NULL);
if ((qnp = malloc(sizeof(*qnp))) == NULL)
err(1, "%s", strerror(errno));