[LTP] [PATCH v2 3/4] syscalls: lchown02: Convert to new API

Andrea Cervesato andrea.cervesato@suse.com
Thu Aug 7 13:18:42 CEST 2025


Hi!

On 8/6/25 11:07 PM, Ricardo B. Marlière via ltp wrote:
> -
> -static struct test_case_t test_cases[] = {
> -	{SFILE1, "Process is not owner/root", EPERM, setup_eperm},
> -	{SFILE2, "Search permission denied", EACCES, setup_eacces},
> -	{NULL, "Unaccessible address space", EFAULT, setup_efault},
> -	{path, "Pathname too long", ENAMETOOLONG, setup_longpath},

This is weird, we supposed to pass a path that is too long (I guess 
bigger than PATH_MAX), but we are passing NULL and obtaining the same 
error. It should fail with EINVAL/ENOENT I guess...

@Cyril WDYT ? It sounds like a kernel error to me.

- Andrea


More information about the ltp mailing list