From: Volker Lendecke Date: Wed, 25 Oct 2023 16:58:34 +0000 (+0200) Subject: smbd: We want to delete symlinks as such in reply_unlink() X-Git-Tag: talloc-2.4.2~826 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=552f9e9d5584dac4177aef70eb438530976557d6;p=thirdparty%2Fsamba.git smbd: We want to delete symlinks as such in reply_unlink() Even with "follow symlinks = yes" we don't want to delete the target when being given a symlink name. Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/smb1_reply.c b/source3/smbd/smb1_reply.c index 4eb13c18cc3..addca927c74 100644 --- a/source3/smbd/smb1_reply.c +++ b/source3/smbd/smb1_reply.c @@ -2745,7 +2745,7 @@ void reply_unlink(struct smb_request *req) status = filename_convert_dirfsp(ctx, conn, name, - ucf_flags, + ucf_flags | UCF_LCOMP_LNK_OK, twrp, &dirfsp, &smb_fname);