Files
photocraft/apps
Khawar Zamman WaniandClaude Opus 5.5 cc574bcf17 photocraft-cli run: refuse an --out that is the input file unless --in-place (#7437)
`run <file> --cmd … --out <same file>` silently replaced the original, so a
lossy re-encode couldn't be undone; `batch` already refuses an --out that is
its --in folder unless --in-place (#492). `run` now takes --in-place and,
with a <file> and an --out, refuses before opening the file or running any
command when the two are the same file by `file_cmds::same_file` (same name,
./ spelling, absolute path, hard or symbolic link). --new runs have no input
and are unaffected.

It uses the `refuse_overwriting_input` helper the `convert` fix adds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-18 21:21:03 +05:30
..