about summary refs log tree commit diff
path: root/stdlib/canonicalize.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/canonicalize.c')
-rw-r--r--stdlib/canonicalize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/canonicalize.c b/stdlib/canonicalize.c
index 55ac1bcf1d..8008a28cc2 100644
--- a/stdlib/canonicalize.c
+++ b/stdlib/canonicalize.c
@@ -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