printing: return the same error code as windows does on upload failures
authorBjörn Jacke <bjacke@samba.org>
Thu, 19 Apr 2018 14:14:38 +0000 (16:14 +0200)
committerBjoern Jacke <bj@sernet.de>
Wed, 25 Apr 2018 11:55:25 +0000 (13:55 +0200)
commit35f2afe411a3b22fb1befadb3bee8da1bc14753c
tree91eea950dfe3155ebf8736d669cf45023e02c46f
parentd7cfb12bf3a29f31cd158246578ffbbf793d5425
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
source3/printing/nt_printing.c