]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: normalize_posix_path: fix error handling when .. is encountered
authorKen Brown <kbrown@cornell.edu>
Wed, 20 Jan 2021 15:12:58 +0000 (10:12 -0500)
committerKen Brown <kbrown@cornell.edu>
Fri, 22 Jan 2021 15:31:09 +0000 (10:31 -0500)
commit4aefad2bb827afa273fcd768bd06dd618d41ae75
tree9250b149c2846af477330c6d8701058b9f79679e
parent0c0ff5dc2103988bda9eee2a97633a8b54bb476e
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
winsup/cygwin/path.cc
winsup/cygwin/release/3.2.0
This page took 0.029504 seconds and 5 git commands to generate.