smbd: Convert print_spool_open to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Mon, 15 Apr 2013 09:51:59 +0000 (11:51 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:50:03 +0000 (14:50 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/printing/printspoolss.c

index 5fab7d54efe046bfbcab65a5634d2adbf0ea2bcb..fc1e9c12e31ea5d75196fc6ae8c3b562047889cd 100644 (file)
@@ -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;
        }