[LTP] [PATCH] setfsuid02: using -1 as invalid fsuid for setfsuid()

Martin Doucha mdoucha@suse.cz
Mon Oct 31 18:23:01 CET 2022


On 31. 10. 22 15:56, Petr Vorel wrote:
> Ah, sure, I see current_uid is used for checking only. So what is your
> suggestion to fix the problem on 16-bit?

I guess using UID_T (defined in the LTP compat headers) instead of uid_t 
is the solution, then -1 will be cast to the correct bitsize.

-- 
Martin Doucha   mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic



More information about the ltp mailing list