Bugzilla bug 95744: handle the case that ENOTEMPTY and EEXIST have the

same value.  (They do on AIX 4.3.)
This commit is contained in:
wtc%netscape.com 2001-08-17 13:31:15 +00:00
parent 27c3b617a6
commit 7d46cbc739

View File

@ -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;