diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-08-19 08:46:57 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-08-19 08:46:57 +0000 |
commit | 3ec80023d1cd4c496afdecc4c7c483654edc494b (patch) | |
tree | 2d19c1b9cf0b65a2ab099238c54b04a7a95bba13 /perl-install/printer/main.pm | |
parent | f17a8bd2dfa3fc0506ca95872f8db03ea2c2de6e (diff) | |
download | drakx-3ec80023d1cd4c496afdecc4c7c483654edc494b.tar drakx-3ec80023d1cd4c496afdecc4c7c483654edc494b.tar.gz drakx-3ec80023d1cd4c496afdecc4c7c483654edc494b.tar.bz2 drakx-3ec80023d1cd4c496afdecc4c7c483654edc494b.tar.xz drakx-3ec80023d1cd4c496afdecc4c7c483654edc494b.zip |
(connectionstr) workaround perl bug
Diffstat (limited to 'perl-install/printer/main.pm')
-rw-r--r-- | perl-install/printer/main.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm index 9b641f79a..9f3ed0fee 100644 --- a/perl-install/printer/main.pm +++ b/perl-install/printer/main.pm @@ -412,7 +412,8 @@ sub connectionstr { } elsif ($connect =~ m!^lpd://([^/]+)/([^/]+)/?$!) { $connection = N("LPD server \"%s\", printer \"%s\"", $1, $2); } elsif ($connect =~ m!^socket://([^/:]+):([^/:]+)/?$!) { - $connection = N("TCP/IP host \"%s\", port %s", $1, $2); + my ($host, $port) = ($1, $2); + $connection = N("TCP/IP host \"%s\", port %s", $host, $port); } elsif ($connect =~ m!^smb://([^/\@]+)/([^/\@]+)/?$! || $connect =~ m!^smb://.*/([^/\@]+)/([^/\@]+)/?$! || $connect =~ m!^smb://.*\@([^/\@]+)/([^/\@]+)/?$!) { |