Re: [PATCH 4/4] Fix theoretical race in interrupted dpkg --configure

2009-11-07 Thread Jonathan Nieder
There’s a typo in this one: Jonathan Nieder wrote: > --- a/src/configure.c > +++ b/src/configure.c > @@ -220,11 +216,6 @@ deferred_configure_conffile(struct pkginfo *pkg, struct > conffile *conff) > if (rename(cdr2.buf, cdr.buf)) > ohshite(_("unable to install

[PATCH 4/4] Fix theoretical race in interrupted dpkg --configure

2009-11-07 Thread Jonathan Nieder
If deferred_configure_conffile() is interrupted after the .dpkg-new file is removed but before its hash is recorded as the distributed conffile hash, that hash is lost forever, and if it is different from the previous one then the conffile will appear to have been modified by the user the next time