summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:51:59 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:03 -0700
commit235a309fc17f029912cbd0608b36a080435ae4b9 (patch)
tree5b87d00f8f45c2d1432d4d1bca518ed90cd220e2
parentea519ec5cefba1079e3f67a2b9b58c8f0ca35948 (diff)
downloadsamba-235a309fc17f029912cbd0608b36a080435ae4b9.tar.gz
samba-235a309fc17f029912cbd0608b36a080435ae4b9.tar.bz2
samba-235a309fc17f029912cbd0608b36a080435ae4b9.zip
smbd: Convert print_spool_open to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/printing/printspoolss.c6
1 files changed, 3 insertions, 3 deletions
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;
}