summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorBjörn Jacke <bjacke@samba.org>2018-04-19 16:14:38 +0200
committerBjoern Jacke <bj@sernet.de>2018-04-25 13:55:25 +0200
commit35f2afe411a3b22fb1befadb3bee8da1bc14753c (patch)
tree91eea950dfe3155ebf8736d669cf45023e02c46f /source3/printing
parentd7cfb12bf3a29f31cd158246578ffbbf793d5425 (diff)
downloadsamba-35f2afe411a3b22fb1befadb3bee8da1bc14753c.tar.gz
printing: return the same error code as windows does on upload failures
Some print drivers inf files are broken and cause driver installation to fail on Samba servers. Windows returns WERR_APP_INIT_FAILURE in that case, we should do the same. Windows machines are less unlucky with that. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13395 Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Wed Apr 25 13:55:25 CEST 2018 on sn-devel-144
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 241af37743e..54357b787f3 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -1217,7 +1217,7 @@ static WERROR move_driver_file_to_download_area(TALLOC_CTX *mem_ctx,
"to rename [%s] to [%s]: %s\n",
smb_fname_old->base_name, new_name,
nt_errstr(status)));
- ret = WERR_ACCESS_DENIED;
+ ret = WERR_APP_INIT_FAILURE;
goto out;
}
}