mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 322183 - Throw specified exception when moving a folder on top of a non-empty folder. AIX 4.3 defines ENOTEMPTY to be the same as EEXIST by default, so add an #if around code in the last checkin to make AIX happy.
This commit is contained in:
parent
3f0439ed89
commit
2517aba831
@ -107,8 +107,15 @@ nsresultForErrno(int err)
|
||||
#endif /* EPERM */
|
||||
case EACCES:
|
||||
return NS_ERROR_FILE_ACCESS_DENIED;
|
||||
/*
|
||||
* On AIX 4.3, ENOTEMPTY is defined as EEXIST,
|
||||
* so there can't be cases for both without
|
||||
* preprocessing.
|
||||
*/
|
||||
#if ENOTEMPTY != EEXIST
|
||||
case ENOTEMPTY:
|
||||
return NS_ERROR_FILE_DIR_NOT_EMPTY;
|
||||
#endif /* ENOTEMPTY != EEXIST */
|
||||
default:
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user