mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Oops, fix an inverted if test.
This commit is contained in:
parent
1583027008
commit
750e6876cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue