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

Andrea Cervesato andrea.cervesato@suse.com
Fri Sep 1 14:47:16 CEST 2023


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



More information about the ltp mailing list