switch (arg_action) {
case ACTION_LIST:
- printf("'%s' (PID %u)\n", message, pid);
+ printf("'%s' (PID %u)\n", strna(message), pid);
return 0;
case ACTION_WALL: {
if (asprintf(&wall,
"Password entry required for \'%s\' (PID %u).\r\n"
"Please enter password with the systemd-tty-ask-password-agent tool.",
- message,
+ strna(message),
pid) < 0)
return log_oom();
if (access(socket_name, W_OK) < 0) {
if (arg_action == ACTION_QUERY)
- log_info("Not querying '%s' (PID %u), lacking privileges.", message, pid);
+ log_info("Not querying '%s' (PID %u), lacking privileges.", strna(message), pid);
return 0;
}
r = ask_password_plymouth(message, not_after, flags, filename, &passwords);
else
r = agent_ask_password_tty(message, not_after, flags, filename, &passwords);
-
if (r < 0) {
/* If the query went away, that's OK */
if (IN_SET(r, -ETIME, -ENOENT))
if (r < 0)
return log_error_errno(r, "Failed to send: %m");
break;
- }
- }
+ }}
return 0;
}