[klibc] Shell scripts broken in klibc-0.114
H. Peter Anvin
hpa at zytor.com
Sun Feb 22 16:35:38 PST 2004
Patrick J. LoPresti wrote:
> In klibc-0.114, any shell script like this:
>
> ======================================================================
> #!/path/to/klibc-0.114/ash/sh
>
> echo hi
> ======================================================================
>
> ...elicits the following error when executed:
>
> /var/tmp/hack.sh: Can't open /var/tmp/hack.sh
>
Problem identified and fixed; the problem is that open() can take either
2 or 3 arguments, which means that it needs to be a varadic function.
Unfortunately varadic functions are always called without regparm.
Workaround checked in as klibc-0.115.
-hpa
More information about the klibc
mailing list