These flags make no sense when we try to access the final inode, hence
refuse.
_cleanup_free_ char *p = NULL;
int r;
- if (chase_flags & CHASE_NONEXISTENT)
+ if (chase_flags & (CHASE_NONEXISTENT|CHASE_STEP))
return -EINVAL;
if (empty_or_root(root) && !ret_path && (chase_flags & (CHASE_NO_AUTOFS|CHASE_SAFE)) == 0) {
if (!ret_dir)
return -EINVAL;
- if (chase_flags & CHASE_NONEXISTENT)
+ if (chase_flags & (CHASE_NONEXISTENT|CHASE_STEP))
return -EINVAL;
if (empty_or_root(root) && !ret_path && (chase_flags & (CHASE_NO_AUTOFS|CHASE_SAFE)) == 0) {
assert(path);
assert(ret_stat);
- if (chase_flags & CHASE_NONEXISTENT)
+ if (chase_flags & (CHASE_NONEXISTENT|CHASE_STEP))
return -EINVAL;
if (empty_or_root(root) && !ret_path && (chase_flags & (CHASE_NO_AUTOFS|CHASE_SAFE)) == 0 && !ret_fd) {