aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_ifs/getmntopts.c
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1997-04-30 05:48:22 +0000
committerMike Smith <msmith@FreeBSD.org>1997-04-30 05:48:22 +0000
commit0a9bd6b010062887587ddf99bc16263ebfd89dd0 (patch)
treee45a5f4e0517edc70c3de61e91f0823736074cb5 /sbin/mount_ifs/getmntopts.c
parentaafb797228298a31f2dfc83594c235430fbb1586 (diff)
downloadsrc-0a9bd6b010062887587ddf99bc16263ebfd89dd0.tar.gz
src-0a9bd6b010062887587ddf99bc16263ebfd89dd0.zip
Fix parsing of mount options with '=' in their name.
PR: bin/3027 Submitted by: Louis Mamakos <louie@TransSys.COM>
Notes
Notes: svn path=/head/; revision=25301
Diffstat (limited to 'sbin/mount_ifs/getmntopts.c')
-rw-r--r--sbin/mount_ifs/getmntopts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount_ifs/getmntopts.c b/sbin/mount_ifs/getmntopts.c
index 583d154f4793..f0cd27c058a7 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) {