Skip to content

Pathname recreation silently redirects relative operations from the current directory #1269

Description

@CvvT

One bug found by Specula:

LiteBox stores CWD as normalized pathname text in Context/ResolvedPath, then cwd_prefix() reserializes that text for later relative operations. If the pathname is removed and recreated, later relative open/openat resolves into the replacement directory instead of preserving the original CWD identity or failing.

See the full report for more details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions