1
0
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:
Volker Lendecke 2023-10-25 09:29:13 +02:00 committed by Jeremy Allison
parent bdc6d3be4c
commit 879db14ff6

View File

@ -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)) {