prints whatever host information it has, even without --lookup.
printf (" . ");
}
#if HAVE_UT_HOST
- if (utmp_ent->ut_host[0] && do_lookup)
+ if (utmp_ent->ut_host[0])
{
char ut_host[sizeof (utmp_ent->ut_host) + 1];
char *host = 0, *display = 0;
if (display)
*display++ = '\0';
- if (*ut_host)
- /* See if we can canonicalize it. */
- host = canon_host (ut_host);
+ if (*ut_host && do_lookup)
+ {
+ /* See if we can canonicalize it. */
+ host = canon_host (ut_host);
+ }
+
if (! host)
host = ut_host;