cvs commit: src/sbin/mount
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Sep 5 18:21:28 PDT 2004
dillon 2004/09/05 18:19:07 PDT
DragonFly src repository
Modified files:
sbin/mount getmntopts.c
Log:
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 at xxxxxx>
Revision Changes Path
1.4 +2 -6 src/sbin/mount/getmntopts.c
http://www.dragonflybsd.org/cvsweb/src/sbin/mount/getmntopts.c.diff?r1=1.3&r2=1.4&f=u
More information about the Commits
mailing list