fix reversed logic when deciding to print tty or not
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16525 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 - 2003 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1999 - 2006 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -476,7 +476,7 @@ main(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
char *tty = ttyname (STDERR_FILENO);
|
char *tty = ttyname (STDERR_FILENO);
|
||||||
syslog (LOG_NOTICE | LOG_AUTH, tty ? "%s to %s" : "%s to %s on %s",
|
syslog (LOG_NOTICE | LOG_AUTH, tty ? "%s to %s on %s" : "%s to %s",
|
||||||
login_info->pw_name, su_info->pw_name, tty);
|
login_info->pw_name, su_info->pw_name, tty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user