mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Similarly to commit v9.10-115-gb3fe24213, which applied the same quoting mechanism to --check operation, also quote file names when generating checksums to tty. This change gives these advantages: 1. Avoids dumping arbitrary data to vulnerable terminals 2. Avoids visual deception with ansi codes with unknown file names 3. More secure if users copy and paste file names from output * doc/coreutils.texi (sum invocation): Mention the tty quoting and reference the details from ... (cksum output modes): Describe the two forms of quoting used. * tests/misc/tty-quoting.sh: Add test cases. * NEWS: Mention the improvement. Discovered by Anthropic's OSS Scanner, as bug ANT-2026-Z25BP6MW.