[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1911: Perl postinst is unecessarily slow



Package: perl
Version: 5.001-6 (a.out)

While running `top' to see how the Perl postinst was getting on I saw:

root      8507 11.4  0.8  105  160 v02 S    01:57   0:03 find /usr/lib/perl5/i486-linux -type f -exec chmod 644 {} ;

Two questions come to mind:

1. Can't you arrange to create them with the right permissions to
start with ?

2. Why not use xargs ?  That would be _much_ faster.  Use find -print0
combined with xargs -0 if it is important that files with newlines in
their names are treated correctly.

Ian.


Reply to: