Subject: Re: strange permissions when extracting syssrc.tgz
To: BokLM <boklm@mars-attacks.org>
From: Perry E. Metzger <perry@piermont.com>
List: tech-misc
Date: 04/05/2003 12:08:46
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?

Perry