Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lapi/stat.h: Handle invalid __NR_fchmodat2 syscall return value
Only 0 and -1 are valid for __NR_fchmodat2. Reporting invalid return value is current approach for LTP safe macros. While at it, unify the error message with safe macros. Fixes: 49e1c01 ("Add fchmodat2 fallback definition") Signed-off-by: Petr Vorel <[email protected]> Acked-by: Andrea Cervesato <[email protected]> Reviewed-by: Li Wang <[email protected]>
- Loading branch information