commit | 562af2c0f2f4bd8420a26560f1816b6a81ac417e | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Sun Sep 28 13:11:20 2014 -0500 |
committer | Rob Landley <rob@landley.net> | Sun Sep 28 13:11:20 2014 -0500 |
tree | 3142e4afdc993df5c67d6cb27cd0b20f40100205 | |
parent | 5d4fa5742fee322187d80bc5a9a55d41a621f8b6 [diff] [blame] |
Brown paper bag time: comma_scan() didn't work for anything but the last entry.
diff --git a/lib/getmountlist.c b/lib/getmountlist.c index 9834722..5f4bc63 100644 --- a/lib/getmountlist.c +++ b/lib/getmountlist.c
@@ -76,7 +76,7 @@ if (!s) break; no = 2*(*s == 'n' && s[1] == 'o'); - if (optlen == len+no && !strcmp(opt, s+no)) { + if (optlen == len-no && !strncmp(opt, s+no, optlen)) { got = !no; if (clean) memmove(s, optlist, strlen(optlist)+1); }