From 562af2c0f2f4bd8420a26560f1816b6a81ac417e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 28 Sep 2014 13:11:20 -0500 Subject: Brown paper bag time: comma_scan() didn't work for anything but the last entry. --- lib/getmountlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/getmountlist.c') diff --git a/lib/getmountlist.c b/lib/getmountlist.c index 98347223..5f4bc63b 100644 --- a/lib/getmountlist.c +++ b/lib/getmountlist.c @@ -76,7 +76,7 @@ int comma_scan(char *optlist, char *opt, int clean) 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); } -- cgit v1.2.3