From 750e6876cf458bbf42c809d745fdf80cba278396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sat, 20 Apr 2002 16:52:41 +0000 Subject: [PATCH] Oops, fix an inverted if test. --- lib/libpam/modules/pam_lastlog/pam_lastlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libpam/modules/pam_lastlog/pam_lastlog.c b/lib/libpam/modules/pam_lastlog/pam_lastlog.c index 731f895bd5b..e27ec505a8a 100644 --- a/lib/libpam/modules/pam_lastlog/pam_lastlog.c +++ b/lib/libpam/modules/pam_lastlog/pam_lastlog.c @@ -91,7 +91,7 @@ pam_sm_open_session(pam_handle_t *pamh, int flags, return (pam_err); if (tty == NULL) return (PAM_SERVICE_ERR); - if (strncmp(tty, _PATH_DEV, strlen(_PATH_DEV))) + if (strncmp(tty, _PATH_DEV, strlen(_PATH_DEV)) == 0) tty += strlen(_PATH_DEV); if (*tty == '\0') return (PAM_SERVICE_ERR);