1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Do not pass noauto to nmount() or external mount program.

Noticed by:	maxim
This commit is contained in:
Craig Rodrigues 2005-11-16 02:13:27 +00:00
parent 15be1e4be0
commit d9fa6ce711
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152465

View File

@ -626,7 +626,16 @@ mangle(options, argcp, argv)
argc = *argcp; argc = *argcp;
for (s = options; (p = strsep(&s, ",")) != NULL;) for (s = options; (p = strsep(&s, ",")) != NULL;)
if (*p != '\0') { if (*p != '\0') {
if (*p == '-') { if (strcmp(p, "noauto") == 0) {
/*
* Do not pass noauto option to nmount().
* or external mount program. noauto is
* only used to prevent mounting a filesystem
* when 'mount -a' is specified, and is
* not a real mount option.
*/
continue;
} else if (*p == '-') {
argv[argc++] = p; argv[argc++] = p;
p = strchr(p, '='); p = strchr(p, '=');
if (p != NULL) { if (p != NULL) {