mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
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
This commit is contained in:
parent
469d15e265
commit
0f6a4a2f72
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user