]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/exec-credential: treat credentials dir as populated if it's mounted
authorMike Yuan <me@yhndnzj.com>
Sat, 13 Dec 2025 17:11:07 +0000 (18:11 +0100)
committerMike Yuan <me@yhndnzj.com>
Tue, 10 Feb 2026 20:54:11 +0000 (21:54 +0100)
commitde65956bdb0f53a3fccb145d21358b0a53f5b0f8
tree6ee2ddfff35e87627aac18e2cc98cec282761b47
parentf9e0a62392fa62364bb7ac31a1cd4a8cc521cced
core/exec-credential: treat credentials dir as populated if it's mounted

We should only fall back to the dir_is_empty() check if
it's a plain dir, where we can't reasonably differentiate
populated yet empty vs not set up. Otherwise let's stick
to the existing mount if we're told to reuse it.

Yes, this is a minor compat break, but with the to-be-introduced
credential reloading support it should fulfill the goal of
keeping the passed set of credentials stable better, while
still allowing things to be refreshed when requested.
src/core/exec-credential.c