[Pkg-nagios-devel] Bug#867256: [Debconf-devel] Bug#608648: dpkg-reconfigure should chdir("/") before running maintainer scripts

Colin Watson cjwatson at debian.org
Tue Jul 11 23:32:33 UTC 2017


On Mon, Jul 10, 2017 at 08:59:23PM +0200, Andreas Beckmann wrote:
> Followup-For: Bug #608648
> 
> This change causes regressions, e.g. #867256. I might find more until
> sid has seen a complete recheck in piuparts.
> 
> That change sounds sensible and should not be reverted, just the
> affected packages should be fixed.

I think the right answer is actually a partial revert.  The change to
Debconf::ConfModule was overkill on my part: it isn't necessary to fix
the original bug, and it causes this kind of problem.  I have an
alternative implementation which only affects dpkg-reconfigure, so won't
break ordinary maintainer scripts like this; I'm just testing it a bit
before upload.

That said, using absolute paths (as has been done though not yet
uploaded for #867256, I see) when calling ucf still seems like a good
idea for robustness.

-- 
Colin Watson                                       [cjwatson at debian.org]



More information about the Pkg-nagios-devel mailing list