Konstantin Belousov fdbe55fccb According to SUSv4, realpath(3) must fail if
[ENOENT]  A component of file_name does not name an existing file or
    file_name points to an empty string.
[ENOTDIR] A component of the path prefix is not a directory, or the
    file_name argument contains at least one non- <slash> character
    and ends with one or more trailing <slash> characters and the last
    pathname component names an existing file that is neither a
    directory nor a symbolic link to a directory.
Add checks for the listed conditions, and set errno accordingly.

Update the realpath(3) manpage to mention SUS behaviour. Remove the
requirement to include sys/param.h before stdlib.h.

PR:	    128933
MFC after:  3 weeks
2012-05-11 11:29:08 +00:00
..
2012-05-08 18:56:21 +00:00
2012-04-26 19:21:58 +00:00
2012-03-26 19:23:57 +00:00
2012-03-28 19:20:28 +00:00
2012-03-06 03:30:09 +00:00
2012-05-04 10:26:50 +00:00
2012-05-08 19:47:52 +00:00
2012-05-08 18:56:21 +00:00
2011-07-10 06:57:00 +00:00