(canonicalize): Use pathconf for PATH_MAX, not sysconf.
authormiles <miles>
Thu, 6 Jun 1996 15:11:16 +0000 (15:11 +0000)
committermiles <miles>
Thu, 6 Jun 1996 15:11:16 +0000 (15:11 +0000)
stdlib/canonicalize.c

index 55ac1bc..8008a28 100644 (file)
@@ -47,7 +47,7 @@ canonicalize (const char *name, char *resolved)
 #ifdef PATH_MAX
       path_max = PATH_MAX;
 #else
-      path_max = sysconf (_SC_PATH_MAX);
+      path_max = pathconf (name, _PC_PATH_MAX);
       if (path_max <= 0)
        path_max = 1024;
 #endif