summaryrefslogtreecommitdiffstats
path: root/sbin/mount
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-11-25 13:24:46 +0000
committerphk <phk@FreeBSD.org>2004-11-25 13:24:46 +0000
commit3b5dc375c186f99e77fab238b3e3e52b9db3d783 (patch)
treeac0d3088b13f7a8528514a576817a64e7fee409a /sbin/mount
parent9f7b765454b3ce0dc900b05f0028a4b0972d1e36 (diff)
downloadFreeBSD-src-3b5dc375c186f99e77fab238b3e3e52b9db3d783.zip
FreeBSD-src-3b5dc375c186f99e77fab238b3e3e52b9db3d783.tar.gz
Fix bug: don't let "synco" match "sync"
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/getmntopts.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/mount/getmntopts.c b/sbin/mount/getmntopts.c
index e284c09..0a6ceb1 100644
--- a/sbin/mount/getmntopts.c
+++ b/sbin/mount/getmntopts.c
@@ -84,10 +84,8 @@ getmntopts(options, m0, flagp, altflagp)
for (m = m0; m->m_option != NULL; ++m) {
len = strlen(m->m_option);
if (strncasecmp(opt, m->m_option, len) == 0)
- if ( m->m_option[len] == '\0'
- || m->m_option[len] == '='
- )
- break;
+ if (opt[len] == '\0' || opt[len] == '=')
+ break;
}
/* Save flag, or fail if option is not recognized. */
OpenPOWER on IntegriCloud