aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/release/3.2.0
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2021-01-20 10:12:58 -0500
committerKen Brown <kbrown@cornell.edu>2021-01-22 10:31:09 -0500
commit4aefad2bb827afa273fcd768bd06dd618d41ae75 (patch)
tree9250b149c2846af477330c6d8701058b9f79679e /winsup/cygwin/release/3.2.0
parent0c0ff5dc2103988bda9eee2a97633a8b54bb476e (diff)
downloadnewlib-4aefad2bb827afa273fcd768bd06dd618d41ae75.zip
newlib-4aefad2bb827afa273fcd768bd06dd618d41ae75.tar.gz
newlib-4aefad2bb827afa273fcd768bd06dd618d41ae75.tar.bz2
Cygwin: normalize_posix_path: fix error handling when .. is encountered
When .. is in the source path and the path prefix exists but is not a directory, return ENOTDIR instead of ENOENT. This fixes a POSIX compliance issue for realpath(3): https://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html Addresses: https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00214.html
Diffstat (limited to 'winsup/cygwin/release/3.2.0')
-rw-r--r--winsup/cygwin/release/3.2.04
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/release/3.2.0 b/winsup/cygwin/release/3.2.0
index c18a848..43725ce 100644
--- a/winsup/cygwin/release/3.2.0
+++ b/winsup/cygwin/release/3.2.0
@@ -48,3 +48,7 @@ Bug Fixes
- Fix a bug in fstatat(2) on 32 bit that could cause it to return garbage.
Addresses: https://cygwin.com/pipermail/cygwin/2021-January/247399.html
+
+- Fix the errno when a path contains .. and the prefix exists but is
+ not a directory.
+ Addresses: https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00214.html