[LTP] [PATCH] setfsuid02: using -1 as invalid fsuid for setfsuid()
Avinesh Kumar
akumar@suse.de
Wed Nov 2 08:40:06 CET 2022
Hi Petr, Martin,
Thank you for the discussion and fixing the patch for 16-bit.
I am making a note to always test 16-bit binaries also.
On Tuesday, November 1, 2022 3:09:20 AM IST Petr Vorel wrote:
> > 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
>
Regards,
Avinesh
More information about the ltp
mailing list