Skip to content

Commit

Permalink
mxgrub: fix scandir routine
Browse files Browse the repository at this point in the history
Use the handle, not the name.
  • Loading branch information
thomas committed Oct 17, 2017
1 parent 4ec03ae commit a0d8f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxgrub/mxgrub
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ sub root_dev {
sub scandir {
my ($dir)=@_;
opendir my $d,$dir or die "$dir: $!\n";
return grep !/^\.\.?$/,readdir $dir;
return grep !/^\.\.?$/,readdir $d;
}

our @MARIUX; # ( 'mariux-3.14.51-69','mariux-3.14.51-68',...)
Expand Down

0 comments on commit a0d8f32

Please sign in to comment.