[LTP] [PATCH v3 6/6] Add file_attr03 test

Cyril Hrubis chrubis@suse.cz
Tue Aug 5 14:22:42 CEST 2025


Hi!
> +static void run(void)
> +{
> +	dfd = SAFE_OPEN(MNTPOINT, O_DIRECTORY);
> +	fd = SAFE_CREAT(MNTPOINT "/" FILENAME, 0777);
> +
> +	TST_EXP_PASS(file_setattr(dfd, FILENAME, attr, FILE_ATTR_SIZE_LATEST, 0));
                                  ^
				  Just for a completion I would use
				  AT_FDCWD in this test so that we test
				  both dirfd (in previous test) and
				  AT_FDCWD (in this test)


-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list