# HG changeset patch # User Rob Landley # Date 1411927880 18000 # Node ID 321e9d5032c1270c323aeb954ffd229d404f4864 # Parent 448e47e2ad46db5891fbc8634bc2c47b8c4f1829 Brown paper bag time: comma_scan() didn't work for anything but the last entry. diff -r 448e47e2ad46 -r 321e9d5032c1 lib/getmountlist.c --- a/lib/getmountlist.c Sat Sep 27 21:07:00 2014 -0500 +++ b/lib/getmountlist.c Sun Sep 28 13:11:20 2014 -0500 @@ -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); }