diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-05-20 09:50:29 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-05-20 09:50:29 +0000 |
commit | 65cd9aa62666d55c293dd84319dc07db3b9b749f (patch) | |
tree | f479a787f16104870043f5d3e44ed50f8fa01128 /perl-install/network/nfs.pm | |
parent | 9146ab96a3ba40c78ea80155f85085b1787e0090 (diff) | |
download | drakx-backup-do-not-use-65cd9aa62666d55c293dd84319dc07db3b9b749f.tar drakx-backup-do-not-use-65cd9aa62666d55c293dd84319dc07db3b9b749f.tar.gz drakx-backup-do-not-use-65cd9aa62666d55c293dd84319dc07db3b9b749f.tar.bz2 drakx-backup-do-not-use-65cd9aa62666d55c293dd84319dc07db3b9b749f.tar.xz drakx-backup-do-not-use-65cd9aa62666d55c293dd84319dc07db3b9b749f.zip |
(find_exports) better behavior when regexp does not match
Diffstat (limited to 'perl-install/network/nfs.pm')
-rw-r--r-- | perl-install/network/nfs.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/nfs.pm b/perl-install/network/nfs.pm index 8d15af3b8..22452e17c 100644 --- a/perl-install/network/nfs.pm +++ b/perl-install/network/nfs.pm @@ -59,7 +59,7 @@ sub find_exports { run_program::raw({ timeout => 1 }, "showmount", '>', \@l, "-e", $server->{ip} || $server->{name}); shift @l; #- drop first line - map { +{ name => $1, comment => $2, server => $server } if /(\S+)\s*(\S+)/ } @l; + map { if_(/(\S+)\s*(\S+)/, { name => $1, comment => $2, server => $server }) } @l; } 1; |