qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] linux-user: manage binfmt-misc preserve-arg[0] flag


From: Laurent Vivier
Subject: Re: [PATCH] linux-user: manage binfmt-misc preserve-arg[0] flag
Date: Mon, 22 Feb 2021 13:21:35 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

Le 22/02/2021 à 11:58, John Paul Adrian Glaubitz a écrit :
> Hi Laurent!
> 
> On 2/22/21 11:50 AM, Laurent Vivier wrote:
>> Add --preserve-argv0 in qemu-binfmt-conf.sh to configure the preserve-argv0
>> flag.
>>
>> This patch allows to use new flag in AT_FLAGS to detect if
>> preserve-argv0 is configured for this interpreter:
>> argv[0] (the full pathname provided by binfmt-misc) is removed and
>> replaced by argv[1] (the original argv[0] provided by binfmt-misc when
>> 'P'/preserve-arg[0] is set)
> 
> Would this patch finally fix the issue with the perl package in Debian? [1]

I think so. Helge can confirm that I guess.

But you need the kernel support (the one merged by Helge) as described in the 
patch message.

2347961b11d4 ("binfmt_misc: pass binfmt_misc flags to the interpreter")

> Adrian
> 
>> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=974004
> 

Thanks,
Laurent



reply via email to

[Prev in Thread] Current Thread [Next in Thread]