Hi! On Wed, 2012-09-05 at 19:18:38 +0200, Harald Dunkel wrote: > Package: dpkg > Version: 1.16.8 > Severity: wishlist
> Obviously I was in a bad directory when I tried to purge some > packages. I got tons of messages > > : > Removing php5-curl ... > Purging configuration files for php5-curl ... > sh: 0: getcwd() failed: No such file or directory > sh: 0: getcwd() failed: No such file or directory > sh: 0: getcwd() failed: No such file or directory > sh: 0: getcwd() failed: No such file or directory > shell-init: error retrieving current directory: getcwd: cannot access parent > directories: No such file or directory [...] > : > > I doubt that php5 is to blame here. Wouldn't it be more wise if dpkg > switches the current working directory to some safe place before running > the maintainer scripts, e.g. / or ~root? While the obvious answer is, don't do that :), yeah, I guess that makes sense regardless, there's other places that the directory would need to be set to a sane default too, I've queued a fix for this for 1.17.x. thanks, guillem -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org