summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-04-04 12:51:55 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-04-04 12:51:55 +0000
commitd18748d13ba0e0c880e21297b033428a9e304aaf (patch)
tree638c57c9135ba9c5e998457e52cf15cc666dc01b
parente74b6ea28a05a2e50517aece8c29f41982b1d02c (diff)
downloadmgaonline-d18748d13ba0e0c880e21297b033428a9e304aaf.tar
mgaonline-d18748d13ba0e0c880e21297b033428a9e304aaf.tar.gz
mgaonline-d18748d13ba0e0c880e21297b033428a9e304aaf.tar.bz2
mgaonline-d18748d13ba0e0c880e21297b033428a9e304aaf.tar.xz
mgaonline-d18748d13ba0e0c880e21297b033428a9e304aaf.zip
remove traillinge EOL from hostname
-rwxr-xr-xmdkupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkupdate b/mdkupdate
index 2701ab56..16999bf4 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -174,7 +174,7 @@ if (!$bundle) {
}
if (!($wc->{HOST_ID} && $wc->{HOST_KEY})) {
use lang;
- my $reg_host = mdkonline::soap_register_host($bundle_vars{USER}, $bundle_vars{PASS}, cat_('/proc/sys/kernel/hostname'), ' ', lang::read()->{country});
+ my $reg_host = mdkonline::soap_register_host($bundle_vars{USER}, $bundle_vars{PASS}, chomp_(cat_('/proc/sys/kernel/hostname')), ' ', lang::read()->{country});
my $res = mdkonline::check_server_response($reg_host);
if ($res ne 'OK') {
$in->ask_warn(N("Error"), N("Failed to authenticate to the bundle server:\n\n%s", $reg_host->{message}));