[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 10/11] linux-user: fix /proc/self/stat handling
From: |
Richard Henderson |
Subject: |
Re: [PATCH v1 10/11] linux-user: fix /proc/self/stat handling |
Date: |
Fri, 10 Apr 2020 07:51:34 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 4/9/20 2:15 PM, Alex Bennée wrote:
> In the original bug report long files names in Guix caused
> /proc/self/stat be truncated without the trailing ") " as specified in
> proc manpage which says:
> (2) comm %s
> The filename of the executable, in parentheses. This
> is visible whether or not the executable is swapped
> out.
>
> Additionally it should only be reporting the executable name rather
> than the full path. Fix both these failings while cleaning up the code
> to use GString to build up the reported values. As the whole function
> is cleaned up also adjust the white space to the current coding style.
>
> Message-ID: <address@hidden>
> Reported-by: Brice Goglin <address@hidden>
> Cc: Philippe_Mathieu-Daudé <address@hidden>
> Signed-off-by: Alex Bennée <address@hidden>
> ---
> linux-user/syscall.c | 43 +++++++++++++++++++------------------------
> 1 file changed, 19 insertions(+), 24 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>
r~
Re: [PATCH v1 09/11] gdbstub: i386: Fix gdb_get_reg16() parameter to unbreak gdb, Richard Henderson, 2020/04/10
[PATCH v1 10/11] linux-user: fix /proc/self/stat handling, Alex Bennée, 2020/04/09
Re: [PATCH v1 10/11] linux-user: fix /proc/self/stat handling,
Richard Henderson <=
[PATCH v1 11/11] .travis.yml: Build OSX 10.14 with Xcode 10.0, Alex Bennée, 2020/04/09
Re: [PATCH for 5.0-rc3 v1 00/11] more random fixes, no-reply, 2020/04/09