From 236e89ae87063bb1883875f76080d3f03c0351d5 Mon Sep 17 00:00:00 2001 From: Jon Murphy Date: Fri, 2 Jun 2023 14:01:16 -0500 Subject: [PATCH] extrahd.cgi: Fix for Bug #12863 -Fixes remove entries in 'extrahd' via the webinterface for extrahd.cgi file. Suggested-by: Bernhard Bitsch Signed-off-by: Jon Murphy Reviewed-by: Michael Tremer Reviewed-by: Bernhard Bitsch --- html/cgi-bin/extrahd.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/extrahd.cgi b/html/cgi-bin/extrahd.cgi index 36c0efc2ef..9dd3a0eeed 100644 --- a/html/cgi-bin/extrahd.cgi +++ b/html/cgi-bin/extrahd.cgi @@ -103,7 +103,7 @@ END } elsif ($extrahdsettings{'ACTION'} eq $Lang::tr{'delete'}) { - if ( &General::system("/usr/local/bin/extrahdctrl", "umount", "$extrahdsettings{'PATH'}")) { + if ( ! &General::system("/usr/local/bin/extrahdctrl", "umount", "$extrahdsettings{'PATH'}")) { open( FILE, "< $devicefile" ) or die "Unable to read $devicefile"; @tmp = ; close FILE; -- 2.39.5