(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:
Assar Westerlund
1999-05-22 18:31:36 +00:00
parent 3608786a89
commit ab70542400

View File

@@ -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",