]> git.ipfire.org Git - thirdparty/systemd.git/commit
creds: if newline is explicitly requested, skip tty check
authorMike Yuan <me@yhndnzj.com>
Wed, 25 Mar 2026 15:00:14 +0000 (16:00 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 26 Mar 2026 15:00:42 +0000 (16:00 +0100)
commit64d1c102ad3af9ce5f640b2fbffb8113697fd0e3
tree0ef2c829d572657090697827cd6f063aac3ae44d
parent1060f82611be352bf77ec1eb82ec8e536849174a
creds: if newline is explicitly requested, skip tty check

Before this commit, the > 0 state of arg_newline tristate is
simply ignored.

Yes, this is a minor compat break, but I'd argue the previous
behavior was not useful as "yes" is treated the same as "auto".
An issue also reported that it was quite surprising.

Fixes #41348
src/creds/creds.c
test/units/TEST-54-CREDS.sh