Skip to content

Commit

Permalink
fix: short names are skipped by injector
Browse files Browse the repository at this point in the history
Backport of fix proposed in fusioninventory/fusioninventory-agent#1000
  • Loading branch information
g-bougard committed Feb 24, 2022
1 parent 5fa1cd1 commit 2c37a10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion bin/glpi-injector
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2c37a10

Please sign in to comment.