summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 11:47:41 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:00 -0700
commit0b147201bd24cc71ed32376961bdfef4b8729dce (patch)
tree0b7d9337776ac842b4f0cc0a51f9e08dca6689d4
parent9041f3d6d3bf9ff068687402b6275004b8c18e95 (diff)
downloadsamba-0b147201bd24cc71ed32376961bdfef4b8729dce.tar.gz
samba-0b147201bd24cc71ed32376961bdfef4b8729dce.tar.bz2
samba-0b147201bd24cc71ed32376961bdfef4b8729dce.zip
smbd: Convert vfs_lstat_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.c10
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;
}