From db42daab778ea9991a292604e3656fd8a358a0d7 Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Wed, 17 Apr 2024 10:09:42 -0500 Subject: [PATCH] Fix for 10+ versions of netbsd --- mount/netbsd-lib.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mount/netbsd-lib.pl b/mount/netbsd-lib.pl index 592230298..50927c5bd 100755 --- a/mount/netbsd-lib.pl +++ b/mount/netbsd-lib.pl @@ -128,9 +128,9 @@ sub list_mounted { # get the list of mounted filesystems local(@rv, $_); -local $cmd = $uname_release =~ /^[3456789]\.[0-9]/ ? "netbsd-mounts-3" : +local $cmd = $uname_release =~ /^1\.[0-9]/ ? "netbsd-mounts" : $uname_release =~ /^2\.[0-9]/ ? "netbsd-mounts-2" : - "netbsd-mounts"; + "netbsd-mounts-3"; &compile_program($cmd); open(CMD, "$module_config_directory/$cmd |"); while() {