smbd: Remove "st" from struct open_symlink_err
authorVolker Lendecke <vl@samba.org>
Sun, 4 Feb 2024 16:27:50 +0000 (17:27 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 28 Mar 2024 08:05:35 +0000 (08:05 +0000)
Since c96010a2a9f nobody reads it anymore

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/smbd/files.c
source3/smbd/proto.h

index 7886f206a810c5b960c3c923643744b0a13278a8..6e7997340137fb42a34ce174a0e7b6554d59ac06 100644 (file)
@@ -1310,8 +1310,6 @@ next:
                len = talloc_get_size(path);
                symlink_err->unparsed = len - parsed;
 
-               symlink_err->st = dirfsp->fsp_name->st;
-
                status = NT_STATUS_STOPPED_ON_SYMLINK;
                goto fail;
        }
@@ -1395,7 +1393,6 @@ done:
                if (!NT_STATUS_IS_OK(status)) {
                        return status;
                }
-               symlink_err->st = fsp->fsp_name->st;
 
                status = NT_STATUS_STOPPED_ON_SYMLINK;
                goto fail;
index 364676347cdc4b971178b18f32e9b0883debc8da..fcc7c0dc3266733d9186ca8f8bb4a7080b7eafdb 100644 (file)
@@ -378,7 +378,6 @@ NTSTATUS open_stream_pathref_fsp(
        struct smb_filename *smb_fname);
 
 struct open_symlink_err {
-       struct stat_ex st;
        size_t unparsed;
        struct reparse_data_buffer *reparse;
 };