summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:25:41 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:02 -0700
commit39470c80562fe5b7db41b09e890495f4eba4c709 (patch)
treeebcd49cf8e95b14ba79e476d77e3866c7bbf97c5 /source3
parent421eeef732a63711b3e922bd63f9ac59110659f1 (diff)
downloadsamba-39470c80562fe5b7db41b09e890495f4eba4c709.tar.gz
samba-39470c80562fe5b7db41b09e890495f4eba4c709.tar.bz2
samba-39470c80562fe5b7db41b09e890495f4eba4c709.zip
smbd: Convert delete_all_streams to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/close.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index d0c843ea9c..a7c6b3e373 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -291,18 +291,18 @@ NTSTATUS delete_all_streams(connection_struct *conn, const char *fname)
for (i=0; i<num_streams; i++) {
int res;
- struct smb_filename *smb_fname_stream = NULL;
+ struct smb_filename *smb_fname_stream;
if (strequal(stream_info[i].name, "::$DATA")) {
continue;
}
- status = create_synthetic_smb_fname(talloc_tos(), fname,
- stream_info[i].name, NULL,
- &smb_fname_stream);
+ smb_fname_stream = synthetic_smb_fname(
+ talloc_tos(), fname, stream_info[i].name, NULL);
- if (!NT_STATUS_IS_OK(status)) {
+ if (smb_fname_stream == NULL) {
DEBUG(0, ("talloc_aprintf failed\n"));
+ status = NT_STATUS_NO_MEMORY;
goto fail;
}