Skip to content

fix(cp): LX reparse links + -r -H directory links (#1647 #1693) - #1732

Merged
caomengxuan666 merged 1 commit into
mainfrom
fix/cp-lx-1647-1693
Nov 14, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
fix/cp-lx-1647-1693

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Closes #1647 #1693. Reads WSL DrvFs IO_REPARSE_TAG_LX_SYMLINK payload and resolves relative targets; default/-L dereference, -d/-P/-a recreate (GNU-shaped cannot create without privilege), -H only depth 0. 13 new LX tests, cp 83/83.

- read IO_REPARSE_TAG_LX_SYMLINK payload, resolve relative targets
- dereference path flows into open/copy/metadata; diagnostics keep spelling
- -d/-P/-a recreate links (GNU-shaped cannot create on no privilege)
- -H dereferences depth 0 only; -L all levels; cp 83/83 (13 new LX tests)
@caomengxuan666
caomengxuan666 marked this pull request as ready for review November 14, 2026 12:27
@caomengxuan666
caomengxuan666 merged commit c02dc9a into main Nov 14, 2026
8 of 10 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/cp-lx-1647-1693 branch November 14, 2026 12:27
caomengxuan666 added a commit that referenced this pull request Nov 14, 2026
- cp.cpp 2449 -> 207 lines (REGISTER_COMMAND/help/options only), streaming ABI
- #1700/#1732 semantics preserved on Rust: LX, dangling, -r -H, -i rc, self-copy
- gate 107 rows: 105 GNU pass / 0 fail / 2 SKIP; ctest cp 83/83
- 60-group matrix: new-vs-GNU rc 60/60; full edition 60/60/60
- 47 tr! keys; catalog patch under catalog/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant