Repository navigation
WIP: winx5-fileops — mv/cp/ln fixes for #1365/#1366/#1367/#1369 (verification pending) - #1403
Merged
Merged
Conversation
caomengxuan666
marked this pull request as ready for review
October 27, 2026 05:58
Member
Author
|
Verified post-merge (origin/main @ 1854504 merged clean, no conflicts): MSVC Debug build green; mv./cp./ln.* unit tests 105/105; full ctest 3235 — the 11 residuals are exactly the environment-bound baseline set on clean origin/main (3x issue_1288 LongPathsEnabled=0, find.issue_1309_ls, 7x xargs CONIN$). i18n: en drops exactly one key — legacy.ddfecb281f85ed1a 'cannot read symlink target', the diagnostic the #1365 mv cross-volume rewrite removes. No additions. Synced on winuxcmd-i18n sync/winx5-fileops-i18n (zh-CN key dropped, VERSION 0.6.28). |
# Conflicts: # tests/unit/cp/cp_unit_test.cpp
This was referenced Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP: winx5-fileops — mv/cp/ln 四条修复,代码已交卷,产品构建/Wine 验证待集成线。
Refs #1365
Refs #1366
Refs #1367
Refs #1369
内容(一 issue 一 commit)
e7cac22mv across volumes turns a symlink into a regular-file copy of its target's contents — and leaves the source link in place #1365 mv 跨卷 reparse 分支重写:逐字读 link 文本后原文重建;删除静默 CopyFileW 回退,创建失败即报错;删源按目录/文件互兜(旧代码源残留却报成功)。fbd8a1bcp --parents with a drive-letter absolute source grafts a literal 'Z:' directory under the target and fails to copy #1366 cp 新增parents_graft_path:从操作数文本算 --parents 嫁接(方言拼写折叠为盘符形后剥锚;相对形不变)。275785fcp --reflink=always on an unsupported volume copies the file via fallback but still exits 1 with 'failed to clone' — the target exists yet the command reports failure #1369 cpclone_file:dest 创建后两处失败路径先关句再 DeleteFileW 删半成品;auto回退不受影响。e11c8f8ln: a dangling symlink as destination is treated as nonexistent — plain form silently does nothing with exit 0, -i never prompts, -b makes no backup #1367 ln 新增 lstat 语义助手lstat_attrs,存在性判定与remove_existing改走它,plain/-i/-b/-f 对悬空目标对齐 GNU;附带 -i 提示改 stderr、答非 y 计 error(GNU 9.4 双跑实测)。每 commit 只含该 issue 的 src + 回归测试(mv 2 钉、cp 2 钉、ln 3 钉,测试名带 issue 号、期望按 GNU 写)。
验证状态(如实)
~/workspace/winuxcmd-fix/clusters/winx5-fileops/的repro.sh(11 断言形)与harness/b/(47 个已编对象可续编);另本机无 clang-format,scripts/format.sh未跑,请顺手过格式门。a104bb2,集成时先 rebase 到当前 main。i18n
四条无新文案键义务(#1365 新报错沿 mv.cpp 既有未键化字面量惯例;#1367 仅提示改流;#1366/#1369 无文案)。如集成线认为 mv 新字面量应入目录,按 en 先行补键。
完整报告:簇内 REPORT.md。