Skip to content

Fix global path substitutions - #678

Open
gl11tchy wants to merge 1 commit into
Tarsnap:masterfrom
gl11tchy:codex/tarsnap-global-substitution
Open

Fix global path substitutions#678
gl11tchy wants to merge 1 commit into
Tarsnap:masterfrom
gl11tchy:codex/tarsnap-global-substitution

Conversation

@gl11tchy

@gl11tchy gl11tchy commented May 11, 2026

Copy link
Copy Markdown

Fixes #675.

Summary

  • Apply a global substitution rule repeatedly against the remaining pathname.
  • Advance after zero-length matches so a global rule cannot retry the same position forever.
  • Add a regression test for -s /abc/ABC/gp replacing every match in a pathname.

Testing

  • env N=8 VERBOSE=1 ./tests/test_tarsnap.sh .
  • env VERBOSE=1 ./tests/test_tarsnap.sh . (04-c-d-real-keyfile skipped; no TARSNAP_TEST_KEYFILE configured)

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Global flag ignored in apply_substitution - bug bounty

1 participant