]> git.ipfire.org Git - thirdparty/systemd.git/commit
pretty-print: do not fail when cat_files() tries to show a masked file
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 13 Jan 2026 06:39:39 +0000 (15:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 16 Jan 2026 14:05:28 +0000 (23:05 +0900)
commitf2125229234e798272f0c05ec99ec15e48d10fc0
treef517a2153a442e8682b105068662374a2f5d9fa3
parent5d0dc9915ca6b1f0b5ed5f37b2d080ae1981a489
pretty-print: do not fail when cat_files() tries to show a masked file

Before 661b5bfd216e383ac7836261eea9671875e6709b, cat_files() does not
check if a file is regular. If the file is a symlink to /dev/null, then
cat_files() simply shows an empty contents for the file.
With the offending commit, as the CHASE_MUST_BE_REGULAR flag is set,
hence when we found a masked file, the function fails.

Fixes #40313.
Fixes regression caused by 661b5bfd216e383ac7836261eea9671875e6709b.

Co-authored-by: gvenugo3 <gvenugo3@asu.edu>
src/shared/pretty-print.c