be more persistent in looking for mount entry
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 9 Aug 1985 08:20:15 +0000 (00:20 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 9 Aug 1985 08:20:15 +0000 (00:20 -0800)
SCCS-vsn: usr.sbin/quotaon/quotaon.c 5.2

usr/src/usr.sbin/quotaon/quotaon.c

index 6930bd1..c269644 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)quotaon.c  5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)quotaon.c  5.2 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -186,7 +186,7 @@ readonly(fs)
                cp = fs->fs_spec;
        for (mp = mtab; mp < mtab + NMOUNT; mp++) {
                if (mp->m_path[0] == '\0')
                cp = fs->fs_spec;
        for (mp = mtab; mp < mtab + NMOUNT; mp++) {
                if (mp->m_path[0] == '\0')
-                       break;
+                       continue;
                if (strcmp(cp, mp->m_dname) == 0) {
                        if (strcmp(mp->m_type, FSTAB_RO) == 0) {
                                printf("%s: mounted read-only\n", fs->fs_file);
                if (strcmp(cp, mp->m_dname) == 0) {
                        if (strcmp(mp->m_type, FSTAB_RO) == 0) {
                                printf("%s: mounted read-only\n", fs->fs_file);