Bug 7882 - rpcclient deldriverex removes all installed printer drivers
Summary: rpcclient deldriverex removes all installed printer drivers
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: Printing (show other bugs)
Version: 3.6.0pre1
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-22 09:45 UTC by Björn Baumbach
Modified: 2011-02-09 09:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Baumbach 2010-12-22 09:45:37 UTC
cmd_spoolss_deletedriverex() removes all installed drivers, if I select only one driver.
If e.g. WERR_PRINTER_DRIVER_IN_USE occurs no driver will be removed.

Example:
laila smb3.6.0-GIT-16e73c6 # ./bin/rpcclient -c enumdrivers ...

[Windows x64]
Printer Driver Info 1:
  Driver Name: [Brother DCP-129C]

Printer Driver Info 1:
  Driver Name: [Brother DCP-116C]



laila smb3.6.0-GIT-16e73c6 # ./bin/rpcclient -c 'deldriverex "Brother DCP-116C" "Windows x64"' ...
Driver Brother DCP-116C and files removed for arch [Windows x64] (version: 3).


laila smb3.6.0-GIT-16e73c6 # ./bin/rpcclient -c enumdrivers ...
laila smb3.6.0-GIT-16e73c6 #
Comment 1 Guenther Deschner 2011-02-09 09:15:24 UTC
This has been fixed for master and 3.6, and we also have a new torture test for testing exactly this.

Bjoern, thanks for the report !