summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Pulz <Joerg.Pulz@frm2.tum.de>2010-11-18 11:47:23 -0800
committerJeremy Allison <jra@samba.org>2010-11-18 21:40:40 +0100
commit0f6a4a2f72b30f8a6b7ab03b5fae33ccae6cfea6 (patch)
tree727248df81863336aec72b1a495e1f3cb682bf2b
parent469d15e2653bceb669f2202c07f6024341f2e99f (diff)
downloadsamba-0f6a4a2f72b30f8a6b7ab03b5fae33ccae6cfea6.tar.gz
samba-0f6a4a2f72b30f8a6b7ab03b5fae33ccae6cfea6.tar.bz2
samba-0f6a4a2f72b30f8a6b7ab03b5fae33ccae6cfea6.zip
Make 'net rpc printer driver' behave the same as rpcclient enumdrivers
when dealing with unsupported architectures. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Nov 18 21:40:40 CET 2010 on sn-devel-104
-rw-r--r--source3/utils/net_rpc_printer.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index 1e218049ed..8408235483 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -976,8 +976,14 @@ static bool net_spoolss_enumprinterdrivers (struct rpc_pipe_client *pipe_hnd,
count,
info);
if (!W_ERROR_IS_OK(result)) {
- printf(_("cannot enum drivers: %s\n"), win_errstr(result));
- return false;
+ if (W_ERROR_V(result) != W_ERROR_V(WERR_INVALID_ENVIRONMENT)) {
+ printf(_("cannot enum drivers for environment %s: %s\n"), env,
+ win_errstr(result));
+ return false;
+ } else {
+ printf(_("Server does not support environment [%s]\n"),
+ env);
+ }
}
return true;