The mount options matching code was incorrectly testing for string
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 6 Sep 2004 01:19:07 +0000 (01:19 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 6 Sep 2004 01:19:07 +0000 (01:19 +0000)
commit17b3587437b60f47ff50064ab09371ab6983cb61
tree9607960d5faf97b6c43dc3bbf042a6261dabba87
parent8bacbd6a260dbbb5873e197416235e1bb4822451
The mount options matching code was incorrectly testing for string
termination or '=' of m->option[len], where len = strlen(m->option).  Also,
at that particular point in the code the opt[] string has already been
stripped of any '='.  The original code must have been intended to check
an unstripped opt[] string but with opt[] stripped it really just needs to
do a case case-insensitive match.

Noticed-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
sbin/mount/getmntopts.c