mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Move INTERNAL_OPEN_ONLY calculation out of the way
This commit is contained in:
parent
3954313d4e
commit
0e96549b56
@ -2611,10 +2611,6 @@ NTSTATUS create_file(connection_struct *conn,
|
||||
}
|
||||
}
|
||||
|
||||
if (req == NULL) {
|
||||
oplock_request |= INTERNAL_OPEN_ONLY;
|
||||
}
|
||||
|
||||
if ((req != NULL) && (req->flags2 & FLAGS2_DFS_PATHNAMES)) {
|
||||
char *resolved_fname;
|
||||
|
||||
@ -2660,6 +2656,10 @@ NTSTATUS create_file(connection_struct *conn,
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (req == NULL) {
|
||||
oplock_request |= INTERNAL_OPEN_ONLY;
|
||||
}
|
||||
|
||||
/* This is the correct thing to do (check every time) but can_delete
|
||||
* is expensive (it may have to read the parent directory
|
||||
* permissions). So for now we're not doing it unless we have a strong
|
||||
|
Loading…
Reference in New Issue
Block a user