[Debconf-devel] Bug#469354: debconf: dpkg-reconfigure should acquire dpkg lock

Colin Watson cjwatson at ubuntu.com
Tue Mar 4 19:57:55 UTC 2008


Package: debconf
Version: 1.5.19
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch hardy

Ian Jackson pointed out that dpkg-reconfigure doesn't acquire the dpkg
lock while running maintainer scripts, and should; otherwise it could
race with a simultaneous 'dpkg -i' provided that the other package
doesn't use debconf, and bad things could conceivably happen. This will
become of more practical importance once dpkg supports triggers, because
then dpkg-reconfigure ought to arrange to process any triggers activated
by the maintainer scripts, and some confusion would arise if dpkg were
running at the same time.

How does this patch look? I thought it was big enough that I ought to
post it for review rather than just committing.

Thanks,

-- 
Colin Watson                                       [cjwatson at ubuntu.com]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debconf.dpkg-lock.diff
Type: text/x-diff
Size: 3216 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debconf-devel/attachments/20080304/89b20c55/attachment.diff 


More information about the Debconf-devel mailing list