diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/vfs.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 19a2788ffa..856e090ed3 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -1284,14 +1284,12 @@ int vfs_stat_smb_fname(struct connection_struct *conn, const char *fname, int vfs_lstat_smb_fname(struct connection_struct *conn, const char *fname, SMB_STRUCT_STAT *psbuf) { - struct smb_filename *smb_fname = NULL; - NTSTATUS status; + struct smb_filename *smb_fname; int ret; - status = create_synthetic_smb_fname_split(talloc_tos(), fname, NULL, - &smb_fname); - if (!NT_STATUS_IS_OK(status)) { - errno = map_errno_from_nt_status(status); + smb_fname = synthetic_smb_fname_split(talloc_tos(), fname, NULL); + if (smb_fname == NULL) { + errno = ENOMEM; return -1; } |