]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stat: don't check QUOTING_STYLE when --printf %%N is used
authorCollin Funk <collin.funk1@gmail.com>
Fri, 27 Feb 2026 04:39:12 +0000 (20:39 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Fri, 27 Feb 2026 05:20:37 +0000 (21:20 -0800)
commit803bfa01e187d1db9846753c130c86e1245feabb
tree6a73e943579635a0c39095684ddfb8bdc810102a
parent4195e36664f800dc13291d5e0ceb2935b71fe2f0
stat: don't check QUOTING_STYLE when --printf %%N is used

* NEWS: Mention the fix.
* src/stat.c (main): Only check QUOTING_STYLE if there is a %N that is
not preceded by a percentage sign.
* tests/stat/stat-fmt.sh: Add some test cases.
NEWS
src/stat.c
tests/stat/stat-fmt.sh