diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-04-20 16:52:41 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-04-20 16:52:41 +0000 |
| commit | 750e6876cf458bbf42c809d745fdf80cba278396 (patch) | |
| tree | d97e2fed658974e4d941191d395a6e16d70523f9 | |
| parent | 1583027008f6787e5094ad2cce3199ffe6410fab (diff) | |
Notes
| -rw-r--r-- | lib/libpam/modules/pam_lastlog/pam_lastlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_lastlog/pam_lastlog.c b/lib/libpam/modules/pam_lastlog/pam_lastlog.c index 731f895bd5b8d..e27ec505a8a29 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); |
