pam_systemd: downgrade OSC sequence writing at close to LOG_DEBUG

Fixes: #39135
This commit is contained in:
Lennart Poettering
2025-09-26 15:58:55 +02:00
parent 582a1e1877
commit cd8a1a8ef7
+2 -1
View File
@@ -1708,9 +1708,10 @@ static int close_osc_context(pam_handle_t *handle) {
if (r < 0)
return pam_syslog_errno(handle, LOG_ERR, r, "Failed to prepare OSC sequence: %m");
/* When we are closing things, the TTY might not take our writes anymore. Accept that gracefully. */
r = loop_write(fd, osc, SIZE_MAX);
if (r < 0)
return pam_syslog_errno(handle, LOG_ERR, r, "Failed to write OSC sequence to TTY: %m");
pam_syslog_errno(handle, LOG_DEBUG, r, "Failed to write OSC sequence to TTY, ignoring: %m");
return PAM_SUCCESS;
}