mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
s3-selftest: fix return code for modprinter.pl -a.
Background is: the SetPrinter level 2 calls "addprinter command" an fails if a share already existed (and the addprinter command returned a non-0 return code). Removing the non-0 return code is fine, as in AddPrinter{Ex}, we have checks to see if a share already exists before calling out the addprinter command. Maybe one day, we need to have a "changeprinter command"... Guenther
This commit is contained in:
parent
c42d9c4ec4
commit
b6f58e25b5
@ -95,7 +95,8 @@ while (<CONFIGFILE>) {
|
||||
if ($section eq $share_name) {
|
||||
$found_section = 1;
|
||||
if ($opt_add) {
|
||||
die("share $share_name already exists\n");
|
||||
exit 0;
|
||||
# die("share $share_name already exists\n");
|
||||
}
|
||||
if ($opt_delete) {
|
||||
$within_section = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user