[PATCH] fix 'net rpc printer driver'
jra at samba.org
Thu Nov 18 12:58:01 MST 2010
On Tue, Nov 16, 2010 at 01:39:56PM +0100, Joerg Pulz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> there is a problem with the 'net rpc printer driver' command.
> If you run this command against an Windows Server 2008 R2 64bit it
> stops as soon as an unsupported architecture/environment is found
> with WERR_INVALID_ENVIRONMENT.
> I think this is wrong as 'rpcclient's enumdrivers' to the same
> server just reports e.g. "Server does not support environment
> [Windows NT R4000]" and continues with the next one.
> As 'net rpc printer driver' stops at the first
> WERR_INVALID_ENVIRONMENT occurence and "Windows x64" is the last in
> the list, you never get a chance to list drivers for this arch/env.
> Not sure if migrating a specific driver is affected too.
> Attached is a patch for source3/utils/net_rpc_printer.c to get the
> same behavior with 'net rpc printer driver' as seen by 'rpcclient's
> Patch is against samba-3.5.6.
Pushed for 3.6.0 - thanks !
More information about the samba-technical