]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
libe2p: fix bug so that MNTOPT_ options can be successfully parsed
authorTheodore Ts'o <tytso@mit.edu>
Thu, 15 Sep 2011 18:21:45 +0000 (14:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Sep 2011 18:25:45 +0000 (14:25 -0400)
Thanks to Israel G. Lugo for pointing this out.

Addresses-Debian-Bug: #641667

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/e2p/mntopts.c

index ebab7fdf65ee72721536bc986458f455ba3981e1..dfdd0ef69bc59b790b3b9ca5f6d5ac2ee823e172 100644 (file)
@@ -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)