Re: strange permissions when extracting syssrc.tgz

"Perry E. Metzger" <[email protected]>
Newsgroups gmane.os.netbsd.devel.general
Message-ID <[email protected]>
BokLM <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.