diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-11-25 13:24:46 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-11-25 13:24:46 +0000 |
| commit | 53805858d25ba78d69adafd168e04aa6caf09e68 (patch) | |
| tree | ac0d3088b13f7a8528514a576817a64e7fee409a /sbin/mount | |
| parent | e33ac9b211e40d735e9c4cb1bf40a613d6ddf8ef (diff) | |
Notes
Diffstat (limited to 'sbin/mount')
| -rw-r--r-- | sbin/mount/getmntopts.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/mount/getmntopts.c b/sbin/mount/getmntopts.c index e284c09b87b8..0a6ceb123054 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. */ |
