]> git.eshelyaron.com Git - emacs.git/commit
Port recent rename changes to RHEL 7 + NFS
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Aug 2017 23:18:45 +0000 (16:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Aug 2017 23:19:21 +0000 (16:19 -0700)
commitddc1ff58dec92a782b233d97a254fc41c1c887eb
tree586afc017bdf34794c18763b946626433b626e4a
parentf465efe412607c6b931e3592e96200f2ff3b8d74
Port recent rename changes to RHEL 7 + NFS

Problem reported by Ted Zlatanov in:
http://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00082.html
* src/fileio.c (Frename_file): On RHEL 7 + NFS, renameat2 can fail
with errno == EINVAL when it is not supported.  So treat that case
like errno == ENOSYS.  Also, when ok_if_already_exists is neither
nil nor an integer, just call plain rename; this avoids an extra
syscall to renameat2 when the latter fails with errno == EINVAL or
ENOSYS or ENOENT.
src/fileio.c