Don't interpret EOVERFLOW to mean nonexistence
commit1dc82a77fa606e18edfa179d5c731d1f7829e398
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 30 Jul 2017 20:06:41 +0000 (30 13:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 30 Jul 2017 20:07:48 +0000 (30 13:07 -0700)
treef6795459b936ef4130492f5dad2457f4b30b6333
parentb6ac7d133c6a478b40f5767b0c9d8713775dbf6f
Don't interpret EOVERFLOW to mean nonexistence

* lib/fts.c (fts_stat): If lstat fails, report its errno, which
may be EOVERFLOW; this is likely more useful than reporting the
stat errno.
* lib/glob.c (link_stat): Rename from link_exists2_p and
return -1/0 instead of 0/1.  Caller changed.
* lib/glob.c (link_exists_p):
* lib/renameat2.c (rename_noreplace, renameat2):
* lib/tempname.c (try_nocreate):
If errno == EOVERFLOW then the directory entry exists, so do not
act as if it does not exist.
ChangeLog
lib/canonicalize-lgpl.c
lib/fts.c
lib/glob.c
lib/renameat2.c
lib/tempname.c