projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6e473d
)
(canonicalize): Use pathconf for PATH_MAX, not sysconf.
author
miles
<miles>
Thu, 6 Jun 1996 15:11:16 +0000
(15:11 +0000)
committer
miles
<miles>
Thu, 6 Jun 1996 15:11:16 +0000
(15:11 +0000)
stdlib/canonicalize.c
patch
|
blob
|
history
diff --git
a/stdlib/canonicalize.c
b/stdlib/canonicalize.c
index
55ac1bc
..
8008a28
100644
(file)
--- 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 (_S
C_PATH_MAX);
+ path_max =
pathconf (name, _P
C_PATH_MAX);
if (path_max <= 0)
path_max = 1024;
#endif