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

Cyril Hrubis
2023-09-01T12:22:18Z

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.

--
Cyril Hrubis
chrubis@suse.cz