From 3b5dc375c186f99e77fab238b3e3e52b9db3d783 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 25 Nov 2004 13:24:46 +0000 Subject: Fix bug: don't let "synco" match "sync" --- sbin/mount/getmntopts.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sbin') 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. */ -- cgit v1.1