Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vfs: stat_recursive should return -ENOSYS if stat callback is NULL #4121

Merged
merged 1 commit into from Jul 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions fs/vfs/fs_stat.c
Expand Up @@ -120,6 +120,10 @@ static int stat_recursive(FAR const char *path,

ret = inode->u.i_mops->stat(inode, desc.relpath, buf);
}
else
{
ret = -ENOSYS;
xiaoxiang781216 marked this conversation as resolved.
Show resolved Hide resolved
}
}
else
#endif
Expand Down