1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

fixed error code for write on a directory

(This used to be commit 68eb5b050e)
This commit is contained in:
Andrew Tridgell 2008-05-28 11:48:21 +10:00
parent b5f39fbda0
commit 6222b8e7e2

View File

@ -45,7 +45,7 @@ NTSTATUS pvfs_write(struct ntvfs_module_context *ntvfs,
}
if (f->handle->fd == -1) {
return NT_STATUS_FILE_IS_A_DIRECTORY;
return NT_STATUS_INVALID_DEVICE_REQUEST;
}
if (!(f->access_mask & (SEC_FILE_WRITE_DATA | SEC_FILE_APPEND_DATA))) {