summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 11:34:37 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:59 -0700
commit83e6ff1511289bc07f9a7e3786efb245363a5646 (patch)
treee7e74a0d7b441f39fb1d2489883ac6d5484e2be2
parent87d92093afd0b22bd826eae95881e9714a6dd12e (diff)
downloadsamba-83e6ff1511289bc07f9a7e3786efb245363a5646.tar.gz
samba-83e6ff1511289bc07f9a7e3786efb245363a5646.tar.bz2
samba-83e6ff1511289bc07f9a7e3786efb245363a5646.zip
vfs: Convert streams_depot_rmdir to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/modules/vfs_streams_depot.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c
index 782b830c7b..8bf8135502 100644
--- a/source3/modules/vfs_streams_depot.c
+++ b/source3/modules/vfs_streams_depot.c
@@ -665,7 +665,6 @@ static int streams_depot_unlink(vfs_handle_struct *handle,
static int streams_depot_rmdir(vfs_handle_struct *handle, const char *path)
{
struct smb_filename *smb_fname_base = NULL;
- NTSTATUS status;
int ret = -1;
DEBUG(10, ("streams_depot_rmdir called for %s\n", path));
@@ -674,10 +673,9 @@ static int streams_depot_rmdir(vfs_handle_struct *handle, const char *path)
* We potentially need to delete the per-inode streams directory
*/
- status = create_synthetic_smb_fname(talloc_tos(), path,
- NULL, NULL, &smb_fname_base);
- if (!NT_STATUS_IS_OK(status)) {
- errno = map_errno_from_nt_status(status);
+ smb_fname_base = synthetic_smb_fname(talloc_tos(), path, NULL, NULL);
+ if (smb_fname_base == NULL) {
+ errno = ENOMEM;
return -1;
}