]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib: (strutils.c) add missing string values for boolean <false>
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 19 Mar 2026 16:03:27 +0000 (12:03 -0400)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Tue, 31 Mar 2026 16:35:19 +0000 (12:35 -0400)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
lib/strutils.c

index 0fce3c7c6560c3971250576e1548e3415af4394e..f6d4cde41839401b0c89c59cff01870cf4ee160a 100644 (file)
@@ -254,7 +254,7 @@ int isxdigit_strend(const char *str, const char **end)
 int ul_strtobool(const char *str, bool *result)
 {
        static const char *bool_true[]  = { "1", "y", "t", "yes", "true", "on", "enable" };
-       static const char *bool_false[] = { "0", "no", "not", "false", "off", "disable" };
+       static const char *bool_false[] = { "0", "n", "f", "no", "false", "off", "disable", "not", };
        size_t i;
 
        if (!str || !result)