fixing open a file as a directory

we should map this failure to STATUS_NOT_A_DIRECTORY

notepad.exe had been known to do this
This commit is contained in:
Olga Kornievskaia 2012-03-14 14:50:23 -04:00
parent 1a00a0bdce
commit d1a05c810e
2 changed files with 2 additions and 1 deletions

View file

@ -3277,6 +3277,7 @@ NTSTATUS map_open_errors(
case ERROR_REPARSE: return STATUS_REPARSE;
case ERROR_TOO_MANY_LINKS: return STATUS_TOO_MANY_LINKS;
case ERROR_DIRECTORY: return STATUS_FILE_IS_A_DIRECTORY;
case ERROR_BAD_FILE_TYPE: return STATUS_NOT_A_DIRECTORY;
default:
print_error("[ERROR] nfs41_Create: upcall returned %d returning "
"STATUS_INSUFFICIENT_RESOURCES\n", status);