mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
smbd: Open file as REPARSE_POINT in smb_posix_unlink()
In the future we'll block opening symlinks as such in SMB_VFS_CREATE_FILE() unless we open as reparse points. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
bdc6d3be4c
commit
879db14ff6
@ -3619,7 +3619,7 @@ static NTSTATUS smb_posix_unlink(connection_struct *conn,
|
||||
files_struct *fsp = NULL;
|
||||
uint16_t flags = 0;
|
||||
int info = 0;
|
||||
int create_options = 0;
|
||||
int create_options = FILE_OPEN_REPARSE_POINT;
|
||||
struct smb2_create_blobs *posx = NULL;
|
||||
|
||||
if (!CAN_WRITE(conn)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user