From 7d46cbc739f6cf34342420796b2f9eb8539bf837 Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Fri, 17 Aug 2001 13:31:15 +0000 Subject: [PATCH] Bugzilla bug 95744: handle the case that ENOTEMPTY and EEXIST have the same value. (They do on AIX 4.3.) --- nsprpub/pr/src/md/unix/unix_errors.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nsprpub/pr/src/md/unix/unix_errors.c b/nsprpub/pr/src/md/unix/unix_errors.c index 7164675b06ff..1ce52e686c4b 100644 --- a/nsprpub/pr/src/md/unix/unix_errors.c +++ b/nsprpub/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;