Thanks, but that patch intrudes on the mainline code a bit. It's simpler to just disable O_PATH on Cygwin until the old Cygwin versions die out. Also, there's a similar issue in fileio.c. I installed the attached, which should work around the problem in both source files.