johan
989f4676c5
realpath(3) should use PATH_MAX instead of MAXPATHLEN according to POSIX.
...
This also reverts the PATH_MAX -> MAXPATHLEN part of
rev 1.3 of src/bin/realpath/realpath.c
Requested by: imp
Reviewed by: imp, bde
2003-01-15 21:22:55 +00:00
johan
8b908a309f
Remove undocumented behavior (return current work dir if no path
...
is given as argument) that is not present in 4-Stable.
It was introduced when realpath(1) was split out of pwd(1).
The removed behavior is provided by pwd(1).
Reviewed by: mike
2002-12-18 11:50:28 +00:00
johan
2d0e93bb2e
- use MAXPATHLEN per realpath(3)
...
- use the problematic part of the path, instead of the argument,
when reporting an error.
Reviewed by: mike
2002-12-18 10:20:40 +00:00
mike
d86e0bcc0c
Check the return value of getcwd() to avoid printf()ing a NULL. Mark
...
usage() as __dead2 to avoid a GCC warning.
Spotted by: keramida
2002-06-09 00:46:24 +00:00
mike
18a66da4bb
Move the realpath(1) source into its own directory. Previously, it
...
shared sources with pwd(1).
2002-02-11 07:32:17 +00:00