Steffen Joeris wrote: > I had a read through the issue and to me it sounds like pristine-tar is > broken > or at least expects the perl-module to work, where it IMHO should have never > worked. I am wondering how many packages are affecting by this or assuming > this behaviour.
Well, I can't see anything in the docs to File::Temp or perldelta that suggest that chdiring into the temp dir is not allowed. Consider that if you want a temp dir, you want a temporary workspace. If all your work is going to occur within a workspace, it makes a certian sense to chdir to it. I'd expect it to be more common for a shell script to do such a thing than a perl script, but I suspect that the number of perl scripts that do it is greater than the two we know of. Most of them are probably lurking in /usr/local/bin of various systems. Of course, I put a workaround for the problem into pristine-tar already: # Workaround for bug #479317 in perl 5.10. sub END { chdir("/"); } That seems to have held up ok in the real world. -- see shy jo
signature.asc
Description: Digital signature