install command nit

I noticed a warning on one of my packages that the appdata file was marked
as executable. The source file is not, its 644, but I use the install
command to install it to the metainfo directory.

Does "install" install files as executable by default or is something else
going on here?

Adding -m 0644 fixed it but it shouldn't be necessary.



Re: install command nit

By =?UTF-8?Q?Bj=c3... at 02/02/2019 - 09:30

Am Samstag, den 02.02.2019, 07:05 -0600 schrieb Richard Shaw:

Quoting from `man install`:

So the `install` command is supposed to set the file mode to 0755 by
default, if not explicitly required different.


Re: install command nit

By Florian Weimer at 02/02/2019 - 09:16

* Richard Shaw:

According to the manual page, the install program uses 0755 by default:

-m, --mode=MODE
set permission mode (as in chmod), instead of rwxr-xr-x

I don't think this is something we can change at this point.


Re: install command nit

By Richard Shaw at 02/02/2019 - 09:19

Nope... Thanks.