Subject: Re: strange permissions when extracting syssrc.tgz
To: Perry E. Metzger <perry@piermont.com>
From: BokLM <boklm@mars-attacks.org>
List: tech-misc
Date: 04/05/2003 19:21:02
On Sat, 05 Apr 2003, Perry E. Metzger wrote:

> 
> BokLM <boklm@mars-attacks.org> writes:
> > I downloaded syssrc.tgz at this address:
> > ftp://ftp.proxad.net/NetBSD/NetBSD-1.6/source/sets/syssrc.tgz
> > 
> > But when I extract it, it creates me /usr/src with mode 777.
> > Is there a reason for this ?
> 
> Yes. /usr/src wasn't included in the tar file -- so in order to
> extract a directory under it, tar is forced to create the directories
> above it with no knowledge of who should own them or what mode they
> should be.
> 
> The more interesting question is whether or not tar is ignoring your
> umask when creating these directories. What is your umask set to?

$ umask
0022

Yes, tar is ignoring it. This might be the recent fix Manuel Bouyer
is talking about.

Thanks

-- 
BokLM
* email : boklm@mars-attacks.org
* Jabber: boklm@jabber.org           Jabber sailfutur !