]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: add test case for masked files in cat_files() v259-stable
authorgvenugo3 <gvenugo3@asu.edu>
Sat, 10 Jan 2026 19:46:18 +0000 (19:46 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 20 Jan 2026 02:05:54 +0000 (11:05 +0900)
commit4f187dc7c1d4808b3878a1231016b7d4e7cc660f
tree546b97f0bd0099744d6fe1c854f932e1a9642eed
parent0d6e3b136d3805a5226e5022d5ba4b72e90fe221
test: add test case for masked files in cat_files()

Add a test case to verify that cat_files() correctly handles symlinks
to /dev/null (masked configuration files) and returns success (0)
instead of failing.

This test complements the fix for issue #40313.

Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>
(cherry picked from commit 01efa01dd28b9c47c1f5fe84c684d9d13192ec96)
src/test/test-pretty-print.c