s3: VFS: fake_acls: In fake_acls_stat() - remove call to get_full_smb_filename().
authorJeremy Allison <jra@samba.org>
Wed, 23 Jun 2021 02:05:06 +0000 (19:05 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 25 Jun 2021 15:53:31 +0000 (15:53 +0000)
It serves no purpose here. We no longer need the frame pointer.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_fake_acls.c

index 818c2f0f8967e3f6a765958e9a93f02d97a6073c..4d1211a064983a1ae2cabea32c817086c32163e4 100644 (file)
@@ -115,37 +115,20 @@ static int fake_acls_stat(vfs_handle_struct *handle,
 
        ret = SMB_VFS_NEXT_STAT(handle, smb_fname);
        if (ret == 0) {
-               TALLOC_CTX *frame = talloc_stackframe();
-               char *path;
                struct smb_filename smb_fname_base = {
                        .base_name = smb_fname->base_name
                };
-               NTSTATUS status;
-               /*
-                * As we're calling getxattr directly here
-                * we need to use only the base_name, not
-                * the full name containing any stream name.
-                */
-               status = get_full_smb_filename(frame, &smb_fname_base, &path);
-               if (!NT_STATUS_IS_OK(status)) {
-                       errno = map_errno_from_nt_status(status);
-                       TALLOC_FREE(frame);
-                       return -1;
-               }
-               
+
                ret = fake_acls_uid(handle, &smb_fname_base,
                                        &smb_fname->st.st_ex_uid);
                if (ret != 0) {
-                       TALLOC_FREE(frame);
                        return ret;
                }
                ret = fake_acls_gid(handle, &smb_fname_base,
                                        &smb_fname->st.st_ex_gid);
                if (ret != 0) {
-                       TALLOC_FREE(frame);
                        return ret;
                }
-               TALLOC_FREE(frame);
        }
 
        return ret;