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

Cyril Hrubis chrubis@suse.cz
Fri Sep 1 14:22:37 CEST 2023


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


More information about the ltp mailing list