]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix compilation error on AIX 7.1
authorBruno Haible <bruno@clisp.org>
Sat, 26 Aug 2023 19:01:48 +0000 (21:01 +0200)
committerPádraig Brady <P@draigBrady.com>
Sun, 27 Aug 2023 15:37:52 +0000 (16:37 +0100)
* src/copy.c (copy_internal): Don't test for ENOTEMPTY if it has the
same value as EEXIST.

src/copy.c

index 4943619c201707ad878bafc3ab160cbb341dd1fa..a60baba80454fe72b864db1783fb2b4251384e9d 100644 (file)
@@ -2846,7 +2846,10 @@ skip:
           switch (rename_errno)
             {
             case EDQUOT: case EEXIST: case EISDIR: case EMLINK:
-            case ENOSPC: case ENOTEMPTY: case ETXTBSY:
+            case ENOSPC: case ETXTBSY:
+#if ENOTEMPTY != EEXIST
+            case ENOTEMPTY:
+#endif
               /* The destination must be the problem.  Don't mention
                  the source as that is more likely to confuse the user
                  than be helpful.  */