summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/remote
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-12-16 15:20:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-12-16 15:20:06 +0000
commit747c271571c5ab11581ac4f2a7202e6bc408f217 (patch)
treed832df72b6f6281426a8e92956405ab314e41389 /perl-install/fs/remote
parent8a21162610636c7e12e20288c40b0965dea16fb4 (diff)
downloaddrakx-backup-do-not-use-747c271571c5ab11581ac4f2a7202e6bc408f217.tar
drakx-backup-do-not-use-747c271571c5ab11581ac4f2a7202e6bc408f217.tar.gz
drakx-backup-do-not-use-747c271571c5ab11581ac4f2a7202e6bc408f217.tar.bz2
drakx-backup-do-not-use-747c271571c5ab11581ac4f2a7202e6bc408f217.tar.xz
drakx-backup-do-not-use-747c271571c5ab11581ac4f2a7202e6bc408f217.zip
- diskdrake:
o --nfs: handle domainname not set (reported somewhere, but can't find where...)
Diffstat (limited to 'perl-install/fs/remote')
-rw-r--r--perl-install/fs/remote/nfs.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/fs/remote/nfs.pm b/perl-install/fs/remote/nfs.pm
index 7acddb730..816c152a5 100644
--- a/perl-install/fs/remote/nfs.pm
+++ b/perl-install/fs/remote/nfs.pm
@@ -51,7 +51,8 @@ sub find_servers {
$quit = 0;
my ($ip, $name) = $s =~ /(\S+)\s+(\S+)/ or log::explanations("bad line in rpcinfo output"), next;
$name =~ s/\.$//;
- $name =~ s/\Q.$domain\E$//;
+ $domain && $name =~ s/\Q.$domain\E$//
+ || $name =~ s/^([^.]*)\.local$/$1/;
$servers{$ip} ||= { ip => $ip, if_($name ne '(unknown)', name => $name) };
}
}