From fc0c605aac64a4ec41b74ccfbb035075910268e3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 17 Jun 2024 15:24:57 +0200 Subject: [PATCH] smbd: Simplify smbd_do_qfilepathinfo() Use fsctl_get_reparse_tag() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/smb2_trans2.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index 65940295248..32d368cedaa 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -3688,18 +3688,10 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn, case SMB_FILE_ATTRIBUTE_TAG_INFORMATION: { uint32_t tag = 0; - uint8_t *data = NULL; - uint32_t datalen; DBG_DEBUG("SMB_FILE_ATTRIBUTE_TAG_INFORMATION\n"); - (void)fsctl_get_reparse_point(fsp, - talloc_tos(), - &tag, - &data, - UINT32_MAX, - &datalen); - TALLOC_FREE(data); + (void)fsctl_get_reparse_tag(fsp, &tag); SIVAL(pdata, 0, mode); SIVAL(pdata, 4, tag); -- 2.47.2