From cc15ab35d06af617433a231981e1bdf7429b08fc Mon Sep 17 00:00:00 2001 From: Jaap Aarts Date: Sun, 26 May 2024 11:39:18 +0200 Subject: [PATCH] Add fprintd to the pam file --- res/pam.d/ly | 2 ++ src/main.zig | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/res/pam.d/ly b/res/pam.d/ly index 1a5fe94..d99690f 100644 --- a/res/pam.d/ly +++ b/res/pam.d/ly @@ -1,5 +1,7 @@ #%PAM-1.0 +auth sufficient pam_unix-so try_first_pass likeauth nullok # empty-password will not pass this, but will not fail causing the next line to get executed +-auth sufficient pam_fprintd.so # We do not want to get errors when pam_fprintd.so is not present auth include login -auth optional pam_gnome_keyring.so -auth optional pam_kwallet5.so diff --git a/src/main.zig b/src/main.zig index f8c9262..1cb8b5f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -602,8 +602,8 @@ pub fn main() !void { asyncPamHandle = null; try std.posix.tcsetattr(std.posix.STDIN_FILENO, .FLUSH, tb_termios); - termbox.tb_clear(); - termbox.tb_present(); + _ = termbox.tb_clear(); + _ = termbox.tb_present(); std.time.sleep(1000000000); }