summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Jacke <bjacke@samba.org>2018-04-19 16:14:38 +0200
committerKarolin Seeger <kseeger@samba.org>2018-05-07 09:57:26 +0200
commit1f5faf4424986178c94f941fb19c6329ec9fdd92 (patch)
treef4d5e9d510979526fedc442bb934677085d2d30b /source3
parent6db05c047f4501de5250689e8fe0fd358f359cc0 (diff)
downloadsamba-1f5faf4424986178c94f941fb19c6329ec9fdd92.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 (cherry picked from commit 35f2afe411a3b22fb1befadb3bee8da1bc14753c)
Diffstat (limited to 'source3')
-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 47590f67fc7..9601f056082 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -1143,7 +1143,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;
}
}