From 879db14ff69126af7b1c7336a36f33e003e8863c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 25 Oct 2023 09:29:13 +0200 Subject: [PATCH] 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 Reviewed-by: Jeremy Allison --- source3/smbd/smb1_trans2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/smb1_trans2.c b/source3/smbd/smb1_trans2.c index 3f8ad70ecce..bf07f325397 100644 --- a/source3/smbd/smb1_trans2.c +++ b/source3/smbd/smb1_trans2.c @@ -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)) { -- 2.47.3