From: Bruno Haible Date: Sat, 26 Aug 2023 19:01:48 +0000 (+0200) Subject: build: fix compilation error on AIX 7.1 X-Git-Tag: v9.4~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=016e9a3bb8ce4f9987c4a725cee7554b879fbd49;p=thirdparty%2Fcoreutils.git 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. --- 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. */