diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2005-11-23 20:17:27 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2005-11-23 20:17:27 +0000 |
commit | 675a0bcf594f9fef7ea42856fc2dae79359daaea (patch) | |
tree | 994d8f26e536296e7e7120706c6ac9d4f0197083 /sbin | |
parent | d45ac37ecdbe6d680d99e547cb625d8a4fc849e9 (diff) | |
download | FreeBSD-src-675a0bcf594f9fef7ea42856fc2dae79359daaea.zip FreeBSD-src-675a0bcf594f9fef7ea42856fc2dae79359daaea.tar.gz |
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
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount/mount.c | 4 |
1 files changed, 4 insertions, 0 deletions
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, '='); |