Skip to content

Commit

Permalink
files.pl: skip undefined size, as with /dev files
Browse files Browse the repository at this point in the history
  • Loading branch information
brendangregg committed Feb 6, 2017
1 parent 640143c commit 54b5f97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions files.pl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ sub usage {

sub wanted {
my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size) = stat($_);
return unless defined $size;
my $path = $File::Find::name;
$path =~ tr/\//;/; # delimiter
$path =~ tr/;.a-zA-Z0-9-/_/c; # ditch whitespace and other chars
Expand Down

0 comments on commit 54b5f97

Please sign in to comment.