From 235a309fc17f029912cbd0608b36a080435ae4b9 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:51:59 +0200 Subject: smbd: Convert print_spool_open to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/printing/printspoolss.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/printing') diff --git a/source3/printing/printspoolss.c b/source3/printing/printspoolss.c index 5fab7d54ef..fc1e9c12e3 100644 --- a/source3/printing/printspoolss.c +++ b/source3/printing/printspoolss.c @@ -212,9 +212,9 @@ NTSTATUS print_spool_open(files_struct *fsp, } /* setup a full fsp */ - status = create_synthetic_smb_fname(fsp, pf->filename, NULL, - NULL, &fsp->fsp_name); - if (!NT_STATUS_IS_OK(status)) { + fsp->fsp_name = synthetic_smb_fname(fsp, pf->filename, NULL, NULL); + if (fsp->fsp_name == NULL) { + status = NT_STATUS_NO_MEMORY; goto done; } -- cgit