s3: smbd: In call_trans2qfilepathinfo(), remove unneeded vfs_stat().
authorJeremy Allison <jra@samba.org>
Tue, 14 Dec 2021 17:50:12 +0000 (09:50 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 15 Dec 2021 19:26:50 +0000 (19:26 +0000)
We know at this point that we have VALID_STAT(smb_fname->st).

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Dec 15 19:26:50 UTC 2021 on sn-devel-184

source3/smbd/trans2.c

index b12f70d43ebd0c338d8f8149b59417cab304c128..dad9d7b18a4c3563ff2a9497c1418cfd391547e2 100644 (file)
@@ -6177,16 +6177,6 @@ static void call_trans2qfilepathinfo(connection_struct *conn,
                        }
                }
 
-               ret = vfs_stat(conn, smb_fname);
-               if (ret != 0) {
-                       DBG_NOTICE("vfs_stat of %s failed (%s)\n",
-                               smb_fname_str_dbg(smb_fname),
-                               strerror(errno));
-                       reply_nterror(req,
-                               map_nt_error_from_unix(errno));
-                       return;
-               }
-
                status = file_name_hash(conn,
                                smb_fname_str_dbg(smb_fname),
                                &name_hash);