]> git.ipfire.org Git - thirdparty/systemd.git/commit
various: add a fixed name to log about plugin execution 38794/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 1 Sep 2025 11:52:35 +0000 (13:52 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Sep 2025 06:56:23 +0000 (08:56 +0200)
commit66b2d758c53dbb9da0127043097996991ec5b54f
tree544bddc6c2050943e35dc924254d278dd0d628dc
parentf2d3472131551cb3322a0bc6a9337728a15a9c9d
various: add a fixed name to log about plugin execution

Function execute_directories logged in a way that was meaningless
without additional context:
  systemd[1]: No executables found.
In execute_strv this was partially rectified by extracting the directory
name from one of the directories and using this as the identifier. But
the directory name is not always meaningful, and can also be set from
an environment variable. Let's simplify things by providing a fixed name
that can be used consistently in all log messages. In particular this will
make error messages easier to understand if users report just the error
without additional context.
src/core/manager.c
src/kernel-install/kernel-install.c
src/libsystemd/sd-path/path-lookup.c
src/shared/exec-util.c
src/shared/exec-util.h
src/shutdown/shutdown.c
src/sleep/sleep.c
src/test/test-exec-util.c