Re: Failing buildword due to execution permission (with fix)

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Mon, 9 Nov 2015 16:13:20 -0800
On 11/9/2015 2:42 PM, Garrett Cooper wrote:
> 
>> On Nov 9, 2015, at 13:35, José Pérez <fbl_at_aoek.com> wrote:
>>
>> Hello,
>> I have this buildwordl failure:
>>
>> ===> libexec/rbootd (depend)
>> --- depend_subdir_lib ---
>> --- aton_ether_subr.c ---
>> /usr/src/contrib/netbsd-tests/lib/libc/net/gen_ether_subr /usr/src/sys/net/if_ethersubr.c ato
>> n_ether_subr.c
>> sh: /usr/src/contrib/netbsd-tests/lib/libc/net/gen_ether_subr: Permission denied
>> *** [aton_ether_subr.c] Error code 126
>>
>>
>> I fixed with:
>> chmod +x /usr/src/contrib/netbsd-tests/lib/libc/net/gen_ether_subr
>>
>>
>> This was from a fresh checkout of current on a new machine.
>>
>> Is it me or shall I report a bug?
> 
> Please file a bug and assign it to me (ngie). Is the file system mounted with noexec?
> Thanks,
> -NGie

If this is a shell file then it is best to invoke it with 'sh' rather
than a chmod/#!. The src checkout should be noexec-safe.


-- 
Regards,
Bryan Drewery


Received on Mon Nov 09 2015 - 23:13:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:00 UTC