summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/lsnetdrake
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2022-06-09 14:43:08 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2022-06-09 14:46:53 +0200
commitfaa9234f0daafde38105b2a9425b7e3e2be27f8f (patch)
treeef75a71623cf1c45f0b36c6ddf12bc31153ac00f /perl-install/standalone/lsnetdrake
parent72022ba64b7a328dd1635a767e0faa3e415dd71a (diff)
downloaddrakx-faa9234f0daafde38105b2a9425b7e3e2be27f8f.tar
drakx-faa9234f0daafde38105b2a9425b7e3e2be27f8f.tar.gz
drakx-faa9234f0daafde38105b2a9425b7e3e2be27f8f.tar.bz2
drakx-faa9234f0daafde38105b2a9425b7e3e2be27f8f.tar.xz
drakx-faa9234f0daafde38105b2a9425b7e3e2be27f8f.zip
do not crash if nmap/nmblookup are not installed
mga#12579 had been fixed long time ago by adding deps to drakxtools-backend but this sadly bloats the minimal installation. Fixing the crash enabled to unbloat the minimal install.
Diffstat (limited to 'perl-install/standalone/lsnetdrake')
-rwxr-xr-xperl-install/standalone/lsnetdrake2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/lsnetdrake b/perl-install/standalone/lsnetdrake
index 41fcd3b30..12399d2c3 100755
--- a/perl-install/standalone/lsnetdrake
+++ b/perl-install/standalone/lsnetdrake
@@ -15,7 +15,7 @@ $| = 1;
$ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}";
foreach my $class (if_($nfs, fs::remote::nfs->new), if_($smb, fs::remote::smb->new)) {
- foreach my $server (sort_names($class->find_servers)) {
+ foreach my $server (sort_names(eval { $class->find_servers })) {
foreach (sort_names(eval { $class->find_exports($server) })) {
print $class->to_fullstring($_), "\n";
}