[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

> > As for setting permissions for files with dynamic ids, debian policy
> > says that dpkg-statoverride is necessary. This is not true, or at
> > least misleading. Certainly the post install script should check to
> > make sure that there isn't any override in place before setting
> > file permissions, but I think it would be better to set permissions
> > with chown and chmod than dpkg-statoverride.
> If you set the permissions with chown, aren't they overwritten every
> time the package is upgraded and then have to be reset again

No. You have to check for overrides first, and only chown/chmod if
there aren't any in place. You have to do this regardless of which
method you use.

> leaving windows on every upgrade when they have the wrong permissions?

I don't know what this means.


Attachment: signature.asc
Description: PGP signature

Reply to: