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:
jwalden%mit.edu 2006-03-30 16:50:17 +00:00
parent 3f0439ed89
commit 2517aba831

View File

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