mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Fix hpux printing
This commit is contained in:
@@ -76,7 +76,7 @@ if ($con =~ /^device for \S+:\s+(\S+)\n\s+(remote to:)\s+(\S+)\s+(on)\s+(\S+)/)
|
||||
elsif ($con =~ /^device for \S+:\s+(\S+)/) { $prn{'dev'} = $1; }
|
||||
|
||||
# Check if this is the default printer
|
||||
if (&backquote_command("$lpstat -d 2>&1", 1) =~ /destination:\s+(\S+)/ &&
|
||||
if (&backquote_command("lpstat -d 2>&1", 1) =~ /: (\S+)/ &&
|
||||
$1 eq $prn{'name'}) {
|
||||
$prn{'default'} = 1;
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ else {
|
||||
$_[1]->{'pass'} ? $_[1]->{'pass'} : "-N",
|
||||
$_[1]->{'user'} ? " -U $_[1]->{'user'}" : "",
|
||||
$_[1]->{'workgroup'} ? " -W $_[1]->{'workgroup'}" : "",
|
||||
" -c \"print /tmp/\$\$.smb\" -P\n");
|
||||
" -c \"print /tmp/\$\$.smb\"\n");
|
||||
&print_tempfile(DRV, "rm /tmp/\$\$.smb\n");
|
||||
&close_tempfile(DRV);
|
||||
if ($config{'iface_owner'}) {
|
||||
|
||||
Reference in New Issue
Block a user