HomeFreeBSD

lookup: Track last lookup component if it is directory.

Description

lookup: Track last lookup component if it is directory.

This makes open("/a/../a", O_BENEATH) with cwd == "/a" work.

Reviewed by: markj
Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D25886

Details

Provenance
kibAuthored on Sep 22 2020, 9:59 PM
Parents
rG44619a5e8617: Improve comment above nameicap_check_dotdot().
Branches
Unknown
Tags
Unknown

Event Timeline