diff options
| author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2005-11-16 02:13:27 +0000 |
|---|---|---|
| committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2005-11-16 02:13:27 +0000 |
| commit | d9fa6ce7116bd297ddf6f3f613ee276bfb419b6c (patch) | |
| tree | 6df103a23d736d7791e39c503bb9b8f408db73c9 | |
| parent | 15be1e4be08d35bc57dd11d5ba3684ea69c9071c (diff) | |
Notes
| -rw-r--r-- | sbin/mount/mount.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index f2eeff574ef7..d95021676e60 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -626,7 +626,16 @@ mangle(options, argcp, argv) argc = *argcp; for (s = options; (p = strsep(&s, ",")) != NULL;) 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; p = strchr(p, '='); if (p != NULL) { |
