[RFC PATCH v2 02/12] tests/inject-nf.test: replace getpid with geteuid

Dmitry V. Levin ldv at altlinux.org
Fri Jun 12 19:26:40 UTC 2020


On Fri, Jun 12, 2020 at 08:23:56PM +0200, Ákos Uzonyi wrote:
> Since we treat PIDs as signed integers, large values (>=2^31) will
> cause overflow when we use printpid.
> UIDs are treated as unsigned integers, so geteuid is a good alternative.
> (getuid would be problematic, as it does not exists on alpha).
> 
> tests/inject-nf.c: Replace getpid with geteuid.

I'd suggest to add:
[__alpha__]: Remove.

> tests/inject-nf.test: Likewise.

I'd suggest to add:
Remove alpha workaround.


-- 
ldv


More information about the Strace-devel mailing list