Just downgrade the log message in case of ENOENT of agent binaries to
LOG_DEBUG. Do this in order to support distros which split off some
agent bianries into separate optional binaries.
Fixes: #37369
/* Count arguments */
execv(argv[0], argv);
- log_error_errno(errno, "Failed to execute %s: %m", argv[0]);
+
+ /* Let's treat missing agent binary as a graceful issue (in order to support splitting out the Polkit
+ * or password agents into separate, optional distro packages), and not complain loudly. */
+ log_full_errno(errno == ENOENT ? LOG_DEBUG : LOG_ERR, errno,
+ "Failed to execute %s: %m", argv[0]);
_exit(EXIT_FAILURE);
}