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

Re: on the use of chmod/chown in maintainer scripts

On Fri, 2012-05-18 at 13:49:19 +0200, Goswin von Brederlow wrote:
> Roger Leigh <rleigh@codelibre.net> writes:
> > On Wed, May 16, 2012 at 02:38:14PM +0200, Goswin von Brederlow wrote:
> >> That just leaves the question of wether dpkg uses uid/gid or symbolic
> >> names when unpacking debs.
> >
> > I think this one is clear: it must be symbolic since the uids/gids
> > aren't static.  Unless you want to provide a package-specific
> > mapping in the control data, and I can't see that gains much, since
> > it makes unpacking unnecessarily complex.  If it's symbolic, you
> > simply just extract it.
> Full ACK on symbolic. The question is what dpkg currently does. Do we
> need to fix dpkg or is dpkg already ready for this?

Because deb packages use tar as the container, this restricts dpkg to
what that supports. Non-ancient formats (i.e. non-V7 tar formats) store
numeric and symbolic names for the file user and group. dpkg has always
tried to use the symbolic name if it's been known to the system, and
has used the numeric value as a fallback otherwise. Relying exclusively
on numeric user/group would not be sane. So dpkg has always “been ready”
for this.


Reply to: