Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getdents: account for d_name size in tst_dirp_size
The linux_dirent and linux_dirent64 structs do not contain space for the d_name member. Add NAME_MAX to the size in tst_dirp_size so that the getdents syscalls do not spuriously fail with EINVAL instead of EFAULT. Signed-off-by: Andreas Schwab <[email protected]> Acked-by: Jan Stancek <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
- Loading branch information