pam/pam-bsc1178727-initialize-daysleft.patch
2024-02-05 14:46:13 +08:00

13 lines
480 B
Diff

Index: Linux-PAM-1.3.0/modules/pam_unix/pam_unix_acct.c
===================================================================
--- Linux-PAM-1.3.0.orig/modules/pam_unix/pam_unix_acct.c
+++ Linux-PAM-1.3.0/modules/pam_unix/pam_unix_acct.c
@@ -188,7 +188,7 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int
unsigned int ctrl;
const void *void_uname;
const char *uname;
- int retval, daysleft;
+ int retval, daysleft = -1;
struct spwd *spent;
struct passwd *pwent;
char buf[256];