emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 9746058: Improve rename-file port to macOS


From: Paul Eggert
Subject: [Emacs-diffs] master 9746058: Improve rename-file port to macOS
Date: Mon, 14 Aug 2017 21:16:28 -0400 (EDT)

branch: master
commit 97460582e2d0052f27d342ddb90309dc3da700b8
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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.
---
 src/fileio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fileio.c b/src/fileio.c
index 9f6de5b..e557483 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2297,7 +2297,7 @@ This is what happens in interactive use with M-x.  */)
       rename_errno = errno;
       switch (rename_errno)
        {
-       case EEXIST: case EINVAL: case ENOSYS:
+       case EEXIST: case EINVAL: case ENOSYS: case ENOTSUP:
          barf_or_query_if_file_exists (newname, rename_errno == EEXIST,
                                        "rename to it",
                                        INTEGERP (ok_if_already_exists),



reply via email to

[Prev in Thread] Current Thread [Next in Thread]