fixed GH #990: Potential race condition in on Windows

This commit is contained in:
Guenter Obiltschnig
2016-11-03 14:48:51 +01:00
parent 6116136afe
commit 86483b4d4b
9 changed files with 39 additions and 7 deletions

View File

@@ -375,7 +375,7 @@ void FileImpl::handleLastErrorImpl(const std::string& path)
case EDQUOT:
throw FileException("disk quota exceeded", path);
case ENOTEMPTY:
throw FileException("directory not empty", path);
throw DirectoryNotEmptyException(path, err);
case ENAMETOOLONG:
throw PathSyntaxException(path);
default: