From: Theodore Ts'o Date: Thu, 15 Sep 2011 18:21:45 +0000 (-0400) Subject: libe2p: fix bug so that MNTOPT_ options can be successfully parsed X-Git-Tag: v1.42-WIP-0916~9^2~4 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=63165136eab4ef01dae295c8e290c2a3853c936b;p=tools%2Fe2fsprogs.git libe2p: fix bug so that MNTOPT_ options can be successfully parsed Thanks to Israel G. Lugo for pointing this out. Addresses-Debian-Bug: #641667 Signed-off-by: "Theodore Ts'o" --- diff --git a/lib/e2p/mntopts.c b/lib/e2p/mntopts.c index ebab7fd..dfdd0ef 100644 --- a/lib/e2p/mntopts.c +++ b/lib/e2p/mntopts.c @@ -65,7 +65,7 @@ int e2p_string2mntopt(char *string, unsigned int *mask) return 0; } } - if (strncasecmp(string, "MNTOPT_", 8)) + if (strncasecmp(string, "MNTOPT_", 7)) return 1; if (string[8] == 0)