Skip to content

Commit

Permalink
Use HAVE_UTEMPTER instead of HAVE_UPTEMPTER
Browse files Browse the repository at this point in the history
Fix typo for issue #942:
- mosh-server incorrectly reports detached session in utmp/wtmp
  • Loading branch information
mojotx committed Nov 21, 2017
1 parent 6fb4d0d commit 21d5dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/mosh-server.cc
Expand Up @@ -664,7 +664,7 @@ static void serve( int host_fd, Terminal::Complete &terminal, ServerConnection &
#ifdef HAVE_UTEMPTER
bool connected_utmp = false;
#endif
#if defined(HAVE_SYSLOG) || defined(HAVE_UPTEMPTER)
#if defined(HAVE_SYSLOG) || defined(HAVE_UTEMPTER)
bool force_connection_change_evt = false;
Addr saved_addr;
socklen_t saved_addr_len = 0;
Expand Down Expand Up @@ -777,7 +777,7 @@ static void serve( int host_fd, Terminal::Complete &terminal, ServerConnection &
if ( !network.shutdown_in_progress() ) {
network.set_current_state( terminal );
}
#if defined(HAVE_SYSLOG) || defined(HAVE_UPTEMPTER)
#if defined(HAVE_SYSLOG) || defined(HAVE_UTEMPTER)
#ifdef HAVE_UTEMPTER
if (!connected_utmp) {
force_connection_change_evt = true;
Expand Down

0 comments on commit 21d5dca

Please sign in to comment.