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
This commit is contained in:
rodrigc 2005-11-23 20:17:27 +00:00
parent d45ac37ecd
commit 675a0bcf59

View File

@ -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, '=');