Index: loginutils/login.c =================================================================== --- loginutils/login.c (revision 22297) +++ loginutils/login.c (working copy) @@ -235,7 +235,7 @@ unsigned opt; int count = 0; struct passwd *pw; - char *opt_host = opt_host; /* for compiler */ + char *opt_host = NULL; /* for compiler */ char *opt_user = opt_user; /* for compiler */ char full_tty[TTYNAME_SIZE]; USE_SELINUX(security_context_t user_sid = NULL;) @@ -286,7 +286,7 @@ read_or_build_utent(&utent, !amroot); - if (opt & LOGIN_OPT_h) { + if (opt_host) { USE_FEATURE_UTMP( safe_strncpy(utent.ut_host, opt_host, sizeof(utent.ut_host)); )