mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s3: smbd: In vfs_stat_smb_basename() use vfs_stat() helper function.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
parent
b0a41119f4
commit
04a4cd2ada
@ -1352,12 +1352,7 @@ int vfs_stat_smb_basename(struct connection_struct *conn,
|
||||
};
|
||||
int ret;
|
||||
|
||||
if (smb_fname.flags & SMB_FILENAME_POSIX_PATH) {
|
||||
ret = SMB_VFS_LSTAT(conn, &smb_fname);
|
||||
} else {
|
||||
ret = SMB_VFS_STAT(conn, &smb_fname);
|
||||
}
|
||||
|
||||
ret = vfs_stat(conn, &smb_fname);
|
||||
if (ret != -1) {
|
||||
*psbuf = smb_fname.st;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user