summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2001-08-17 13:31:15 +0000
committerwtc%netscape.com <devnull@localhost>2001-08-17 13:31:15 +0000
commit62723862586bdb664dbbef53a1368a38b739ed6b (patch)
tree8b409ebc7bccfef97f5ee4cf0df46d2d8314a25f
parentf7b843b8dec17be6d612b30c52e39cfb35e62848 (diff)
downloadnspr-hg-62723862586bdb664dbbef53a1368a38b739ed6b.tar.gz
Bugzilla bug 95744: handle the case that ENOTEMPTY and EEXIST have theNSPRPUB_CLIENT_TAG
same value. (They do on AIX 4.3.)
-rw-r--r--pr/src/md/unix/unix_errors.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pr/src/md/unix/unix_errors.c b/pr/src/md/unix/unix_errors.c
index 7164675b..1ce52e68 100644
--- a/pr/src/md/unix/unix_errors.c
+++ b/pr/src/md/unix/unix_errors.c
@@ -383,9 +383,14 @@ void _MD_unix_map_rmdir_error(int err)
PRErrorCode prError;
switch (err) {
+ /*
+ * On AIX 4.3, ENOTEMPTY is defined as EEXIST.
+ */
+#if ENOTEMPTY != EEXIST
case ENOTEMPTY:
prError = PR_DIRECTORY_NOT_EMPTY_ERROR;
break;
+#endif
case EEXIST:
prError = PR_DIRECTORY_NOT_EMPTY_ERROR;
break;