diff options
Diffstat (limited to 'daemon/gdm-session-solaris-auditor.c')
-rw-r--r-- | daemon/gdm-session-solaris-auditor.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/daemon/gdm-session-solaris-auditor.c b/daemon/gdm-session-solaris-auditor.c index d8eb6379..badbdbba 100644 --- a/daemon/gdm-session-solaris-auditor.c +++ b/daemon/gdm-session-solaris-auditor.c @@ -177,17 +177,17 @@ gdm_session_solaris_auditor_report_login_failure (GdmSessionAuditor *auditor, /* If display is on console or VT */ if (hostname != NULL && hostname[0] != '\0') { - /* login from the local host */ - if (adt_load_ttyname (display_device, &tid) != 0) { - syslog (LOG_AUTH | LOG_ALERT, - "adt_loadhostname (localhost): %m"); - } - } else { /* Login from a remote host */ if (adt_load_hostname (hostname, &tid) != 0) { syslog (LOG_AUTH | LOG_ALERT, "adt_loadhostname (%s): %m", hostname); } + } else { + /* login from the local host */ + if (adt_load_ttyname (display_device, &tid) != 0) { + syslog (LOG_AUTH | LOG_ALERT, + "adt_loadhostname (localhost): %m"); + } } if (adt_set_user (ah, |