From 016e9a3bb8ce4f9987c4a725cee7554b879fbd49 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 26 Aug 2023 21:01:48 +0200 Subject: [PATCH] build: fix compilation error on AIX 7.1 * src/copy.c (copy_internal): Don't test for ENOTEMPTY if it has the same value as EEXIST. --- src/copy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/copy.c b/src/copy.c index 4943619c20..a60baba804 100644 --- a/src/copy.c +++ b/src/copy.c @@ -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. */ -- 2.47.2