(main): fix condition for login_access
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6278 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -534,7 +534,7 @@ main(int argc, char **argv)
|
||||
else
|
||||
tty = ttyn;
|
||||
|
||||
if (login_access (pwd, remote_host ? remote_host : tty)) {
|
||||
if (login_access (pwd, remote_host ? remote_host : tty) == 0) {
|
||||
fprintf(stderr, "Permission denied\n");
|
||||
if (remote_host)
|
||||
syslog(LOG_NOTICE, "%s LOGIN REFUSED FROM %s",
|
||||
|
Reference in New Issue
Block a user