#include <security/pam_appl.h>
#include <security/pam_modules.h>
+#include <afs/auth.h>
#include "afs_message.h"
#include "afs_util.h"
i++;
remain = 1;
remainlifetime = (int)strtol(argv[i], (char **)NULL, 10);
- if (remainlifetime == 0)
+ if (remainlifetime == 0) {
if ((errno == EINVAL) || (errno == ERANGE)) {
remainlifetime = REMAINLIFETIME;
pam_afs_syslog(LOG_ERR, PAMAFS_REMAINLIFETIME, argv[i],
no_unlog = 0;
remain = 0;
}
+ }
} else if (strcmp(argv[i], "no_unlog") == 0) {
no_unlog = 1;
} else {