Re: build.sh: arbitrary write permissions on built files?

Greg Troxel <[email protected]> Fri, 11 Oct 2019 08:23:53 -0400
Newsgroups gmane.os.netbsd.devel.installation
Message-ID <[email protected]>
Frédéric Fauberteau <[email protected]> writes:

> I used build.sh for building NetBSD-9.0_BETA/amd64 sets and it is a
> awesome tool! When I tried to upgrade a machine using sysupgrade, I
> realized that I forgot the x{base,comp,...} sets. It is when I
> reupload the newly built release I realized that some files had
> read-only permissions (because permission denied during scp). On the
> system where I built the release, I get:
> $ ls -l amd64/binary/kernel/
> total 42324
> -rw-r--r-- 1 triaxx users      508 10 oct.  23:21 MD5
> -r--r--r-- 1 triaxx users 10109837 10 oct.  23:11 netbsd-GENERIC.gz

Arguably it's a bug that they are different.

But, I'd say 444 is right, and you should use scp -pf if that's what you
want.