mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Don't call can_write_to_file() if we already have 'fsp->can_write' set.
This commit is contained in:
parent
35a4a1ed1f
commit
b66bcab58c
@ -718,6 +718,7 @@ void reply_ntcreate_and_X(struct smb_request *req)
|
||||
uint32 perms = 0;
|
||||
p += 25;
|
||||
if (fsp->is_directory ||
|
||||
fsp->can_write ||
|
||||
can_write_to_file(conn, smb_fname)) {
|
||||
perms = FILE_GENERIC_ALL;
|
||||
} else {
|
||||
@ -1345,6 +1346,7 @@ static void call_nt_transact_create(connection_struct *conn,
|
||||
uint32 perms = 0;
|
||||
p += 25;
|
||||
if (fsp->is_directory ||
|
||||
fsp->can_write ||
|
||||
can_write_to_file(conn, smb_fname)) {
|
||||
perms = FILE_GENERIC_ALL;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user