On 2015-02-22 17:50, Michael Gilbert wrote:
> On Sun, Feb 22, 2015 at 6:35 AM, Christian Kastner wrote:
>> In wheezy and later, where /etc/sudoers already is a conffile, that is
>> entirely for dpkg to handle, not for the *.preinst scripts. Anything in
>> the *.preinst is exclusively for when upgrading from squeeze.
> 
> So, the more I think about it, isn't this the real problem?  The
> *.preinst scripts mess with wheezy's /etc/sudoers even though it
> should only be managed by dpkg.

Precisely[*]. In fact, if we assume that the squeeze->jessie upgrade
path (skipping wheezy) is not supported, the *.preinst scripts become
completely unnecessary and could be dropped entirely, because the
wheezy->jessie upgrade case is handled just like any other conffile.

However, the simple one-line-fix I proposed should have the very same
effect whilst being less intrusive and more accomodating:
  * On install the code *.preinst code is skipped unconditionally
    (because old-version isn't set), and
  * On upgrade it's skipped in wheezy and later (because the
    old-version is newer than 1.7.4p4-4).

The install case also covers the switch-between-sudo,sudo-ldap case,
which triggered this bug.

Regards,
Christian

[*] not to take someone else's credit: it was Andreas who correctly
identified the actual problem.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to