--- openssh-5.9p1/openbsd-compat/bsd-openpty.c.orig 2006-08-24 11:52:30.000000000 +0200 +++ openssh-5.9p1/openbsd-compat/bsd-openpty.c 2011-12-03 02:12:14.000000000 +0100 @@ -125,11 +125,13 @@ * Try to push the appropriate streams modules, as described * in Solaris pts(7). */ +#if defined(I_PUSH) ioctl(*aslave, I_PUSH, "ptem"); ioctl(*aslave, I_PUSH, "ldterm"); # ifndef __hpux ioctl(*aslave, I_PUSH, "ttcompat"); # endif /* __hpux */ +#endif return (0); --- openssh-5.9p1/config.h.in.orig 2011-09-07 01:16:28.000000000 +0200 +++ openssh-5.9p1/config.h.in 2011-12-03 02:12:54.000000000 +0100 @@ -99,7 +99,7 @@ #undef DISABLE_LASTLOG /* Define if you don't want to use your system's login() call */ -#undef DISABLE_LOGIN +#define DISABLE_LOGIN 1 /* Define if you don't want to use pututline() etc. to write [uw]tmp */ #undef DISABLE_PUTUTLINE @@ -111,13 +111,13 @@ #undef DISABLE_SHADOW /* Define if you don't want to use utmp */ -#undef DISABLE_UTMP +#define DISABLE_UTMP 1 /* Define if you don't want to use utmpx */ #undef DISABLE_UTMPX /* Define if you don't want to use wtmp */ -#undef DISABLE_WTMP +#define DISABLE_WTMP 1 /* Define if you don't want to use wtmpx */ #undef DISABLE_WTMPX