[Midnightbsd-cvs] src [8060] trunk/lib/libc/stdlib/realpath.c: Avoid mapping ENOENT to ENOTDIR for non-existent path components.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Sep 15 17:35:49 EDT 2016
Revision: 8060
http://svnweb.midnightbsd.org/src/?rev=8060
Author: laffer1
Date: 2016-09-15 17:35:49 -0400 (Thu, 15 Sep 2016)
Log Message:
-----------
Avoid mapping ENOENT to ENOTDIR for non-existent path components.
Modified Paths:
--------------
trunk/lib/libc/stdlib/realpath.c
Modified: trunk/lib/libc/stdlib/realpath.c
===================================================================
--- trunk/lib/libc/stdlib/realpath.c 2016-09-15 21:33:21 UTC (rev 8059)
+++ trunk/lib/libc/stdlib/realpath.c 2016-09-15 21:35:49 UTC (rev 8060)
@@ -181,8 +181,6 @@
return (NULL);
}
if (lstat(resolved, &sb) != 0) {
- if (errno != ENOENT || p != NULL)
- errno = ENOTDIR;
if (m)
free(resolved);
return (NULL);
More information about the Midnightbsd-cvs
mailing list