[monitoring-plugins] check_flexlm: add check if license exists

Sven Nierlein git at monitoring-plugins.org
Thu Oct 1 15:10:19 CEST 2026


    Module: monitoring-plugins
    Branch: master
    Commit: 5620074338ed7fda73d74bbad9d4a7e6d0391bf6
    Author: Sven Nierlein <Sven.Nierlein at consol.de>
 Committer: Sven Nierlein <sven at nierlein.org>
      Date: Thu Oct  1 14:43:46 2026 +0200
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=56200743

check_flexlm: add check if license exists

otherwise this could be exploited in the call to lmstat.

---

 plugins-scripts/check_flexlm.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins-scripts/check_flexlm.pl b/plugins-scripts/check_flexlm.pl
index 659a3c53..b936efc2 100755
--- a/plugins-scripts/check_flexlm.pl
+++ b/plugins-scripts/check_flexlm.pl
@@ -89,6 +89,7 @@ unless (-x $lmstat ) {
 ($opt_F) || ($opt_F = shift) || usage("License file not specified\n");
 my $licfile = $1 if ($opt_F =~ /^(.*)$/);
 ($licfile) || usage("Invalid filename: $opt_F\n");
+(-e $licfile) || usage("Invalid filename: $opt_F: $!\n");
 
 print "$licfile\n" if $verbose;
 



More information about the Commits mailing list