]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Fix build on AIX
authorSergey Poznyakoff <gray@gnu.org>
Tue, 15 Jan 2019 13:21:03 +0000 (15:21 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Tue, 15 Jan 2019 13:21:03 +0000 (15:21 +0200)
* src/unlink.c (flush_deferred_unlinks): Avoid possible duplicate case
(if ENOTEMPTY==EEXIST)

src/unlink.c

index 8f3a8a43b72cd4fb2be3474b9110f6bfc1ae3f49..5a72f701288d30075b93328eff95cb3ced7ddb22 100644 (file)
@@ -127,7 +127,9 @@ flush_deferred_unlinks (bool force)
                    case EEXIST:
                      /* OpenSolaris >=10 sets EEXIST instead of ENOTEMPTY
                         if trying to remove a non-empty directory */
+#if defined ENOTEMPTY && ENOTEMPTY != EEXIST
                    case ENOTEMPTY:
+#endif
                      /* Keep the record in list, in the hope we'll
                         be able to remove it later */
                      prev = p;