Fix hpux printing

This commit is contained in:
Jamie Cameron
2011-10-18 10:40:42 -07:00
parent d652c05991
commit 8b32d95239
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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'}) {