Skip to content
Commit fcf83067 authored by Al Viro's avatar Al Viro
Browse files

vfs: fix compat_sys_stat() handling of overflows in st_nlink



Massaged cp_compat_stat() into form closer to cp_new_stat(); the only
real issue had been in handling of st_nlink overflows - native 32bit
stat(2) returns -EOVERFLOW in such situations, compat one silently
loses upper bits.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent dcdbed85
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment