aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2017-08-14 18:16:04 -0700
committerPaul Eggert2017-08-14 18:16:23 -0700
commit97460582e2d0052f27d342ddb90309dc3da700b8 (patch)
treee24b1807b1b4ea5c59ef6e599519601d1e944b74 /src
parente88bbd22c5ffb1d6008c0c7e18a36043b0f397dd (diff)
downloademacs-97460582e2d0052f27d342ddb90309dc3da700b8.tar.gz
emacs-97460582e2d0052f27d342ddb90309dc3da700b8.zip
Improve rename-file port to macOS
* src/fileio.c (Frename_file): On macOS, renameat_noreplace can fail with errno == ENOTSUP on file systems where it is not supported, according to the Apple documentation.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 9f6de5b6ca7..e557483ac4a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2297,7 +2297,7 @@ This is what happens in interactive use with M-x. */)
2297 rename_errno = errno; 2297 rename_errno = errno;
2298 switch (rename_errno) 2298 switch (rename_errno)
2299 { 2299 {
2300 case EEXIST: case EINVAL: case ENOSYS: 2300 case EEXIST: case EINVAL: case ENOSYS: case ENOTSUP:
2301 barf_or_query_if_file_exists (newname, rename_errno == EEXIST, 2301 barf_or_query_if_file_exists (newname, rename_errno == EEXIST,
2302 "rename to it", 2302 "rename to it",
2303 INTEGERP (ok_if_already_exists), 2303 INTEGERP (ok_if_already_exists),