age -o follows a symlink and writes a pipe or device directly (closes #59) #60

Merged
clawbot merged 1 commits from issue-59-age-output-path into next 2026-10-04 16:59:02 +02:00
1 Commits
Author SHA1 Message Date
sneak 02942b591d age -o follows a symlink and writes a pipe or device directly (closes #59)
check / check (push) Failing after 2s
age encrypt -o and age decrypt -o always renamed a new file over the
named path, replacing a symlink, a named pipe or a device such as
/dev/null with a regular file. A path that is the same file as the
tool's standard output or standard error, under any name, is now
written to that stream, so the file it is redirected to keeps its
contents. Any other path is looked at without following a final
symlink: nothing there or a regular file is replaced by rename as
before, a symlink gets the same treatment for what it points at and is
refused if it points at nothing, and anything else is written to
directly, without catching signals. The README says so, and that a
replaced file has mode 0600.

Model: opus-5-5
2026-10-04 14:33:34 +00:00