apply nofile/lstat fix