Bug#316521: dpkg: stale directories when packages install conffiles to subsubdirectories of /etc

2011-05-11 Thread Guillem Jover
Hi! Thanks for the test-case, I've commited it as t-dir-leftover-deadlock, and added a new t-dir-leftover-parents which is what I thought you were trying to solve initially, given your bug report. So I think these two issues should be detangled, and I'll be applying my revised patch to fix the -pa

Bug#316521: dpkg: stale directories when packages install conffiles to subsubdirectories of /etc

2011-05-11 Thread Ondřej Surý
Hi Guillem, your patch doesn't fix the problem, and even introduces more problems, because as it is written it leaves all directories which have conffiles on the disk. This section: static void removal_bulk_remove_files(struct pkginfo *pkg) { [...] if (namenode->flags & fnnf_old_conff) {