New version

Bug fix, debugger when run as root hangs on proc traverse.
This commit is contained in:
Harald Hope 2018-06-05 01:19:08 -07:00
parent 1030b77d2e
commit fa5deddfac
2 changed files with 19 additions and 3 deletions

8
inxi
View file

@ -31,8 +31,8 @@ use POSIX qw(uname strftime ttyname);
## INXI INFO ## ## INXI INFO ##
my $self_name='inxi'; my $self_name='inxi';
my $self_version='3.0.11'; my $self_version='3.0.12';
my $self_date='2018-06-04'; my $self_date='2018-06-05';
my $self_patch='00'; my $self_patch='00';
## END INXI INFO ## ## END INXI INFO ##
@ -1720,6 +1720,7 @@ sub copy_files {
$name = $_; $name = $_;
$name =~ s/^\///; $name =~ s/^\///;
$name =~ s/\//~/g; $name =~ s/\//~/g;
# print "$name\n" if $type eq 'proc';
$name = "$directory/$working$name"; $name = "$directory/$working$name";
$good = $name . '.txt'; $good = $name . '.txt';
$absent = $name . '-absent'; $absent = $name . '-absent';
@ -1916,8 +1917,9 @@ sub wanted {
return if $File::Find::name =~ /^\/proc\/[0-9]+\//; return if $File::Find::name =~ /^\/proc\/[0-9]+\//;
return if $File::Find::name =~ /^\/proc\/bus\/pci\//; return if $File::Find::name =~ /^\/proc\/bus\/pci\//;
return if $File::Find::name =~ /^\/proc\/irq\//; return if $File::Find::name =~ /^\/proc\/irq\//;
# these choke on sudo/root: kmsg kcore kpage and we don't want keys or kallsyms
return if $File::Find::name =~ /^\/proc\/k/;
return if $File::Find::name =~ /(\/mb_groups|debug)$/; return if $File::Find::name =~ /(\/mb_groups|debug)$/;
return if $File::Find::name eq '/proc/kallsyms' || $File::Find::name eq '/proc/keys';
} }
# print $File::Find::name . "\n"; # print $File::Find::name . "\n";
push (@content, $File::Find::name); push (@content, $File::Find::name);

View file

@ -1,3 +1,17 @@
=====================================================================================
Version: 3.0.12
Patch Version: 00
Script Date: 2018-06-05
-----------------------------------
Changes:
-----------------------------------
New version
Bug fix, debugger when run as root hangs on proc traverse.
-----------------------------------
-- Harald Hope - Tue, 05 Jun 2018 01:18:18 -0700
===================================================================================== =====================================================================================
Version: 3.0.11 Version: 3.0.11
Patch Version: 00 Patch Version: 00