I've just received an email from a rather distraught and angry user reporting that one of the tests in File::Remove deleting his root directory.
This is the first time I've heard anything like this, and the user hasn't given me any information about the system that it occurred on (although we can assume it is a POSIX system) but you may wish to show some care when installing CPAN modules.
I will have a new release out to fix this potential problem as soon as possible.
UPDATE:
A contributed test in t/05_links.t creates softlinks to several directories and then deletes them to test that remove() does NOT follow the softlinks.
Unfortunately, one of the places the test links to is File::Spec::rootdir().
As a result, when the test FAILS it will recursively delete the root directory.
This test has now been removed from the distribution, and File::Remove 0.38 has been uploaded to the CPAN.
bug in default README ? (Score:1)
perl Makefile.PL
make
make test
sudo make install
to discourage building (or doing anything not required) as root. (Adam's modules don't say make install in README, so it can't be blamed for someone making this module as root but
Never carry a bazooka with the safety set to READY.
Serious Question: Was the actual bug in the test attempting use of symlinks where symlinks were emulated with hard links?
Bill
# I had a sig when sigs were cool
use Sig;
The thing is... (Score:1)
And thus, "sudo cpan" is probably far more common than the alternative.
Re: (Score:1)
Personally I always use 'dh-make-perl --cpan --build' followed by 'sudo dpkg -i' and I'd recommend it as the default way for installing modules, but of course that's platform-restrictive...
Re: (Score:1)
"sudo cpan" is simple and easy, and thus the most common method.
We should make the best ways EASIER, not harder.
Re: (Score:1)
Re: (Score:2)
Re: (Score:2)
Oh, you'd be surprised. Sometimes you're given little choice. Installing Perl modules on "secure" servers with extremely limited network access is awfully entertaining.
Re: (Score:2)
DON'T SUDO CPAN! (Score:2)
o conf make_install_make_command 'sudo make'
o conf mbuild_install_build_command 'sudo
That makes the CPAN shell do the safe thing. Normal first-time configuration these days asks if you'd like to do that, but ONLY if you're not root. If you are root it should probably advise you restart as a non-root user.
Re: (Score:1)
If cpan really shouldn't be run as root, then CPAN should refuse to run as root if sudo is available.
Re: (Score:2)
Porting features from Acme::BadExample? (Score:1)
From Acme::BadExample [cpan.org]: