Regexp "a[b-a]" should not compile.
[kopensolaris-gnu/glibc.git] / posix / getconf.c
index 7219c8d..a28b8eb 100644 (file)
@@ -423,7 +423,7 @@ static const struct conf vars[] =
 #ifdef _SC_BC_STRING_MAX
     { "BC_STRING_MAX", _SC_BC_STRING_MAX, SYSCONF },
 #endif
-    { "CHARCLASS_NAME_MAX", _SC_CHARCLASS_NAME_MAX },
+    { "CHARCLASS_NAME_MAX", _SC_CHARCLASS_NAME_MAX, SYSCONF },
 #ifdef _SC_COLL_WEIGHTS_MAX
     { "COLL_WEIGHTS_MAX", _SC_COLL_WEIGHTS_MAX, SYSCONF },
 #endif
@@ -662,11 +662,13 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
              usage ();
            value = sysconf (c->call_name);
            if (value == -1l)
-             if (c->call_name == _SC_UINT_MAX
-                 || c->call_name == _SC_ULONG_MAX)
-               printf ("%lu\n", value);
-             else
-               puts (_("undefined"));
+             {
+               if (c->call_name == _SC_UINT_MAX
+                   || c->call_name == _SC_ULONG_MAX)
+                 printf ("%lu\n", value);
+               else
+                 puts (_("undefined"));
+             }
            else
              printf ("%ld\n", value);
            exit (0);