diff options
author | msmith <msmith@FreeBSD.org> | 1997-04-30 05:48:22 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1997-04-30 05:48:22 +0000 |
commit | 5139aca705c9228f7aefb55ba6a20fb7391e79d8 (patch) | |
tree | d6a9279195c3c63f04284a56300443504d92c980 /sbin | |
parent | 08224caae1ec57e6582634b37535f94b5689b44d (diff) | |
download | FreeBSD-src-5139aca705c9228f7aefb55ba6a20fb7391e79d8.zip FreeBSD-src-5139aca705c9228f7aefb55ba6a20fb7391e79d8.tar.gz |
Fix parsing of mount options with '=' in their name.
PR: bin/3027
Submitted by: Louis Mamakos <louie@TransSys.COM>
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount/getmntopts.c | 2 | ||||
-rw-r--r-- | sbin/mount_ifs/getmntopts.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mount/getmntopts.c b/sbin/mount/getmntopts.c index 583d154..f0cd27c 100644 --- a/sbin/mount/getmntopts.c +++ b/sbin/mount/getmntopts.c @@ -78,7 +78,7 @@ getmntopts(options, m0, flagp, altflagp) */ p = strchr(opt, '='); if (p) - *p = '\0'; + *++p = '\0'; /* Scan option table. */ for (m = m0; m->m_option != NULL; ++m) { diff --git a/sbin/mount_ifs/getmntopts.c b/sbin/mount_ifs/getmntopts.c index 583d154..f0cd27c 100644 --- a/sbin/mount_ifs/getmntopts.c +++ b/sbin/mount_ifs/getmntopts.c @@ -78,7 +78,7 @@ getmntopts(options, m0, flagp, altflagp) */ p = strchr(opt, '='); if (p) - *p = '\0'; + *++p = '\0'; /* Scan option table. */ for (m = m0; m->m_option != NULL; ++m) { |