[LTP] [PATCH v1 2/3] syscalls/dup206: Add a test when newfd equals oldfd

Cyril Hrubis chrubis@suse.cz
Thu Oct 7 15:15:09 CEST 2021


Hi!
> +static void setup(void)
> +{
> +	char testfile[40];
> +
> +	sprintf(testfile, "dup206.%d", getpid());
> +	fd = SAFE_OPEN(testfile, O_RDWR | O_CREAT, 0666);

There is no reason to append the pid here, so I've changed this to just
SAFE_OPEN("testfile", ...) and pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list