--- sys_term.c.old Wed Nov 29 12:01:35 2000 +++ sys_term.c Wed Nov 29 12:11:45 2000 @@ -1603,6 +1603,9 @@ * -p : don't clobber the environment (so terminal type stays set). * * -f : force this login, he has already been authenticated + * + * -H UT_HOSTSIZE : (UT_HOSTSIZE == 16), always accurate entry by + * login(1) into wtmp (only if -h) */ argv = addarg(0, "login"); @@ -1616,8 +1619,12 @@ if ((auth_level < 0) || (autologin != AUTH_VALID)) # endif { + char uthostsizestr[4]; argv = addarg(argv, "-h"); argv = addarg(argv, host); + snprintf(uthostsizestr,sizeof(uthostsizestr),"%d",UT_HOSTSIZE); + argv = addarg(argv, "-H"); + argv = addarg(argv, uthostsizestr); #ifdef SOLARIS /* * SVR4 version of -h takes TERM= as second arg, or -