Whamcloud - gitweb
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 ebab7fd..dfdd0ef 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)