mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
27c3b617a6
commit
7d46cbc739
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user