[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#568313: Suggestion: forbid the use of dpkg-statoverride in postinst scripts, except for --list

martin f krafft <madduck@debian.org> writes:
> also sprach Russ Allbery <rra@debian.org> [2010.02.04.1222 +1300]:

>> If you set the permissions with chown, aren't they overwritten every
>> time the package is upgraded and then have to be reset again, leaving
>> windows on every upgrade when they have the wrong permissions?

> Maybe dpkg could be taught to preserve permissions on files that
> already exist (i.e. on upgrades)?

I suppose it's a question of what the best defaults are, but I prefer the
behavior of assuming the ownership and permissions shipped in the package
are correct and the installed files should be modified to match.  The case
where I want to preserve the existing permissions is much rarer than the
case where the new version of the package needs to change the permissions
for some reason, I think.

Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>

Reply to: