Propagate ancient fix from Junos.

Use of -h is not supposed to depend on AUTHENTICATION being defined.

Reviewed by: markm
This commit is contained in:
Simon J. Gerraty 2013-11-07 00:36:39 +00:00
parent 1192eeb8a3
commit 1a02b48ede
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257773

View file

@ -1052,11 +1052,11 @@ start_login(char *host undef1, int autologin undef1, char *name undef1)
*/
if ((auth_level < 0) || (autologin != AUTH_VALID))
# endif
#endif /* AUTHENTICATION */
{
argv = addarg(argv, "-h");
argv = addarg(argv, host);
}
#endif /* AUTHENTICATION */
#endif
#if !defined(NO_LOGIN_P)
argv = addarg(argv, "-p");