/usr/share/perl5/auto/Inline/rmpath.al is in libinline-perl 0.53-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # NOTE: Derived from blib/lib/Inline.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package Inline;
#line 1265 "blib/lib/Inline.pm (autosplit into blib/lib/auto/Inline/rmpath.al)"
#==============================================================================
# Nuke a path (nicely)
#==============================================================================
sub rmpath {
use strict;
my ($o, $prefix, $rmpath) = @_;
# Nuke the target directory
_rmtree(File::Spec->catdir($prefix ? ($prefix,$rmpath) : ($rmpath)));
# Remove any empty directories underneath the requested one
my @parts = File::Spec->splitdir($rmpath);
while (@parts){
$rmpath = File::Spec->catdir($prefix ? ($prefix,@parts) : @parts);
($rmpath) = $rmpath =~ /(.*)/ if UNTAINT;
rmdir $rmpath
or last; # rmdir failed because dir was not empty
pop @parts;
}
}
# end of Inline::rmpath
1;
|