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:
parent
b5f39fbda0
commit
6222b8e7e2
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user