session: Do not log pam_conv after start

This error caused annoying issues when the main process did not have a
terminal attached.
This commit is contained in:
Kenny Levinsen
2020-05-22 01:44:22 +02:00
parent 69d5bb7915
commit 48ed39e701

View File

@@ -222,8 +222,8 @@ impl Session {
SessionChildToParent::FinalChildPid(raw_pid) => {
break Pid::from_raw(raw_pid as i32)
}
SessionChildToParent::PamMessage { style, msg } => {
eprintln!("pam_conv after start: {:?}, {}", style, msg);
SessionChildToParent::PamMessage { .. } => {
// pam_conv after start, ignore
ParentToSessionChild::PamResponse { resp: None }
.send(&mut self.sock)
.await?;