summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 10:49:46 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:00 -0700
commitedb7293020737b7dc6aeaf98654f58a8d4c34227 (patch)
treed2de263be389e2e63de117e803923ed142e7f9d0
parentaa523408b4ba20e70403f819981e4881bdfeaae5 (diff)
downloadsamba-edb7293020737b7dc6aeaf98654f58a8d4c34227.tar.gz
samba-edb7293020737b7dc6aeaf98654f58a8d4c34227.tar.bz2
samba-edb7293020737b7dc6aeaf98654f58a8d4c34227.zip
smbd: Convert call_trans2qfilepathinfo to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/smbd/trans2.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index dcd2af2320..6186e5ce3f 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -5331,16 +5331,14 @@ static void call_trans2qfilepathinfo(connection_struct *conn,
/* If this is a stream, check if there is a delete_pending. */
if ((conn->fs_capabilities & FILE_NAMED_STREAMS)
&& is_ntfs_stream_smb_fname(smb_fname)) {
- struct smb_filename *smb_fname_base = NULL;
+ struct smb_filename *smb_fname_base;
/* Create an smb_filename with stream_name == NULL. */
- status =
- create_synthetic_smb_fname(talloc_tos(),
- smb_fname->base_name,
- NULL, NULL,
- &smb_fname_base);
- if (!NT_STATUS_IS_OK(status)) {
- reply_nterror(req, status);
+ smb_fname_base = synthetic_smb_fname(
+ talloc_tos(), smb_fname->base_name,
+ NULL, NULL);
+ if (smb_fname_base == NULL) {
+ reply_nterror(req, NT_STATUS_NO_MEMORY);
return;
}