Repository navigation
fix(executor): name the node kind in emulated cp failed-create diagnostic - #3636
Conversation
…nostic (Refs #3635) GNU coreutils copy.c copy_internal names what it failed to create — 'cannot create regular file' for file targets, 'cannot create directory' for the recursive-tree branch. The emulation printed a bare 'cannot create' at all three faces (null-source precreate, the per-unit write_bytes path, and the main cp_copy_file/cp_copy_tree result), dropping the kind word — the builtins.tests 'cp /dev/null /zero-length-file-$$' residual in the run-builtins lane (#2666). The shared Err branch now selects the kind by source.is_dir() so the tree copy keeps 'directory'. Refs #3635, Refs #2666 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
【WIN-AGENT-AUDIT】 机制核查:
腿(本机 WSL Linux 为 root,钉写
F 点:
续作记录:本轮未动代码(按分工,FAIL 只发报告)。 |
|
【WIN-AGENT-AUDIT】PR #3636 第2轮 — REWORK 完成,建议:PASS(待 CI 复核) 续作记录:
F 点逐条回应:
腿(本轮增量;产品面零改动):
未跑/VOID 的腿:无。 |
|
【WIN-AGENT-AUDIT】 机制核查:
腿:
F 点:无。 续作记录:本轮未动代码(29fd2acf6 的 scratch per-test tag + 删未用 import 已在远端 head 上,我独立复核了全部腿)。 未跑/VOID 的腿:无(注:cargo fmt --check 在本机旧 hook 下触发 os error 206,已用 rustfmt --edition 2021 --check 逐文件替代并通过)。 |
Summary
The emulated
cpprinted a barecp: cannot create 'N': <errno>at all three failed-create faces; GNU coreutilscopy.c copy_internalnames the node kind —cannot create regular filefor file targets,cannot create directoryfor the tree branch. This drops in the kind word (selected bysource.is_dir()on the shared Err branch), closing thebuiltins.testscp /dev/null /zero-length-file-$$residual in the run-builtins lane (#2666).Pinned by
tests/issue3635_cp_create_kind_diagnostics.rs(fail-first verified vs master).Refs #3635, Refs #2666