Re: [LTP] [PATCH v1 1/2] Refactor getegid01 using new LTP API

Andrea Cervesato via ltp
2023-09-01T12:47:38Z

Hi,

On 9/1/23 14:22, Cyril Hrubis wrote:
> Hi!
>>>> + SAFE_FILE_LINES_SCANF("/proc/self/status", "Gid: %d %d", &st_gid, &st_egid);
>>> Hint: You can use assignment suppresion '*' in order to get rid of the
>>> dummy st_gid variable.
>> Also, unfortunately this is not working.
> SAFE_FILE_LINES_SCANF("/proc/self/status", "Gid: %*d %d", &st_egid); works for me.
>
Ok, that perfectly works now.

Waiting for getegid02 review, then I will modify code and send it with
the patch set.

Thanks,
Andrea