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

Petr Vorel pvorel@suse.cz
Mon Oct 31 22:39:20 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.

Thank you, that worked.

Merged, with additional cast to long to keep compiler happy.

Kind regards,
Petr


More information about the ltp mailing list