From 675a0bcf594f9fef7ea42856fc2dae79359daaea Mon Sep 17 00:00:00 2001 From: rodrigc Date: Wed, 23 Nov 2005 20:17:27 +0000 Subject: Do not pass userquota and groupquota mount options to nmount(). These options are read from fstab by quotacheck(8), but are not valid mount options that need to be passed down the the filesystem. Noticed by: maxim --- sbin/mount/mount.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 89bc1cb..abde12d 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -633,6 +633,10 @@ mangle(options, argcp, argv) * not a real mount option. */ continue; + } else if (strcmp(p, "userquota") == 0) { + continue; + } else if (strcmp(p, "groupquota") == 0) { + continue; } else if (*p == '-') { argv[argc++] = p; p = strchr(p, '='); -- cgit v1.1