diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-12 11:46:15 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:50:00 -0700 |
commit | 9041f3d6d3bf9ff068687402b6275004b8c18e95 (patch) | |
tree | 579652703020fd55c77b20fc0110cafe9cbefd7d | |
parent | bde53d8c5b6c6cee51f18bf50a1cdbe01e2e99cc (diff) | |
download | samba-9041f3d6d3bf9ff068687402b6275004b8c18e95.tar.gz samba-9041f3d6d3bf9ff068687402b6275004b8c18e95.tar.bz2 samba-9041f3d6d3bf9ff068687402b6275004b8c18e95.zip |
smbd: Convert vfs_stat_smb_fname to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-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 edc10a4f97..19a2788ffa 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -1254,14 +1254,12 @@ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname) int vfs_stat_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; } |