From 2c37a10278222761ee34e8c6ff89d7d778539fdb Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Thu, 24 Feb 2022 12:03:43 +0100 Subject: [PATCH] fix: short names are skipped by injector Backport of fix proposed in fusioninventory/fusioninventory-agent#1000 --- Changes | 3 +++ bin/glpi-injector | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 600333424..bb1308b54 100644 --- a/Changes +++ b/Changes @@ -21,6 +21,9 @@ ssl-server-plugin: * Fix: Support closing forked SSL connections without shutdown SSL to support Proxy server plugin * Bump version to 1.1 +injector: +* Fix shortly named directory are skipped + contrib: * Fix #73: Fix ADMX/ADML for agent configuration via GPO diff --git a/bin/glpi-injector b/bin/glpi-injector index b2eeb155a..e2bd5d4a9 100755 --- a/bin/glpi-injector +++ b/bin/glpi-injector @@ -104,7 +104,7 @@ sub loaddirectory { opendir (my $handle, $directory) or die "can't open directory $directory: $ERRNO\n"; foreach my $file (sort readdir($handle)) { - next if $file =~ /^..?$/ ; + next if $file =~ /^\.\.?$/ ; if (-d "$directory/$file") { loaddirectory("$directory/$file") if ($options->{recursive}); } else {