Il giorno ven 20 ago 2021 alle ore 18:46 Roberto A. Foglietta <
roberto.foglie...@gmail.com> ha scritto:

> Il giorno ven 20 ago 2021 alle ore 17:49 Harald van Dijk <
> har...@gigawatt.nl> ha scritto:
>
>> On 20/08/2021 16:31, Roberto A. Foglietta wrote:
>> > Il giorno ven 20 ago 2021 alle ore 16:36 Harald van Dijk
>> > <har...@gigawatt.nl <mailto:har...@gigawatt.nl>> ha scritto:
>> >
>> >
>> >         cat >shrc <<EOF
>> >         :
>> >         :
>> >         :
>> >         EOF
>> >         ENV=shrc ./busybox ash -ic 'echo LINENO=$LINENO'
>> >         3
>> >
>> >     I can understand (and would
>> >     personally prefer) outputting 1 / 2 for the first case and 1 for the
>> >     second case. Outputting 3 for the second case seems wrong.
>>
>
> Thank you for the explanation. The 9th patch fixes the problem for every
> command in line.
>

the bash return 0 when questioned in this way:

ENV=shrc src/busybox ash -ic 'echo LINENO=$LINENO'
ash: using fallback suid method
LINENO=1

ENV=shrc bash -ic 'echo LINENO=$LINENO'
LINENO=0

I have added this test to the testsuite which is in attachment.
I am attaching a second version of the 9th patch which sets that value to
zero
Feel free to choose the one you like.

 Cheers,
-- 
Roberto A. Foglietta
+39.349.33.30.697

Attachment: busybox-1.33.1-9of9-LINENO-set-to-0-for-commands.patch
Description: Binary data

Attachment: testsuite.tgz
Description: application/compressed

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to