tech-pkg archive

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

Re: "error: ... : world-writable file."



Am 20.08.2019 um 16:20 schrieb Hauke Fath:
> while the package builds fine (permissions correct) on netbsd-9. The
> source tarball has several files with '0666' (built on a Mac? Wintel?).
>
> What does NetBSD pkgsrc apply that the Illumos one is missing?

The umask.

I tried both NetBSD tar and GNU tar, and they both applied the umask to
the extracted files.

touch file
chmod 666 file
tar cf file.tar file
tar tfv file.tar
rm file
tar xf file.tar file

After these commands, the file has mode 644 since my umask is 022.


Home | Main Index | Thread Index | Old Index