Skip to content

fix: ArchiveFS.Sub mutated receiver and replaced prefix instead of joining#68

Open
SAY-5 wants to merge 1 commit into
mholt:mainfrom
SAY-5:fix-archivefs-sub-prefix
Open

fix: ArchiveFS.Sub mutated receiver and replaced prefix instead of joining#68
SAY-5 wants to merge 1 commit into
mholt:mainfrom
SAY-5:fix-archivefs-sub-prefix

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 12, 2026

ArchiveFS.Sub copied the receiver pointer rather than the struct, so it mutated the original FS, and it overwrote Prefix instead of joining onto any existing prefix, breaking nested Sub calls. This copies the struct and joins the prefix. Closes #67.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running Sub on an archive FS that has already has Sub run on it results in invalid FS

1 participant