summaryrefslogtreecommitdiff
path: root/usr.sbin/quot
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-11-21 04:23:10 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-11-21 04:23:10 +0000
commitd1f7a73dfd8018455ba8eacd2daf1e1feabd1f8d (patch)
tree67f4eab01112f187407951a073729eb86b3f3fcf /usr.sbin/quot
parent55535c109c5db1c857cbd7564fc7ec36d9782b55 (diff)
Don't include mfs partitions in 'quot -a' since there is no device file
to open.
Diffstat (limited to 'usr.sbin/quot')
-rw-r--r--usr.sbin/quot/quot.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c
index bd3c66b235a..f0268229708 100644
--- a/usr.sbin/quot/quot.c
+++ b/usr.sbin/quot/quot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: quot.c,v 1.9 2000/06/07 03:55:03 millert Exp $ */
+/* $OpenBSD: quot.c,v 1.10 2000/11/21 04:23:09 millert Exp $ */
/* $NetBSD: quot.c,v 1.7.4.1 1996/05/31 18:06:36 jtc Exp $ */
/*
@@ -33,7 +33,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: quot.c,v 1.9 2000/06/07 03:55:03 millert Exp $";
+static char rcsid[] = "$Id: quot.c,v 1.10 2000/11/21 04:23:09 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -608,9 +608,8 @@ main(argc, argv)
cnt = getmntinfo(&mp, MNT_NOWAIT);
if (all) {
for (; --cnt >= 0; mp++) {
- if (!strcmp(mp->f_fstypename, MOUNT_FFS) ||
- !strcmp(mp->f_fstypename, MOUNT_MFS) ||
- !strcmp(mp->f_fstypename, "ufs")) {
+ if (strcmp(mp->f_fstypename, MOUNT_FFS) == 0 ||
+ strcmp(mp->f_fstypename, "ufs") == 0) {
if ((nm = strrchr(mp->f_mntfromname, '/'))) {
snprintf(dev, sizeof(dev), "%sr%s",
_PATH_DEV, nm + 1);