X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=ca23fd89457900685cc25449f7f4d8a1e73c6f25;hb=d72dc17f4164fd8a3e3c56a74a66a21138d82814;hp=bbf1850615034813236eae29014838b0ab8d60cc;hpb=08baf4f8bc7623c41a9753c71aed9a4042196aac;p=mmh diff --git a/uip/slocal.c b/uip/slocal.c index bbf1850..ca23fd8 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -965,9 +965,13 @@ logged_in (void) setutent(); while ((utp = getutent()) != NULL) { - if (utp->ut_type == USER_PROCESS - && utp->ut_user[0] != 0 - && strncmp (user, utp->ut_user, sizeof(utp->ut_user)) == 0) { + if ( +#ifdef HAVE_UTMP_UT_TYPE + utp->ut_type == USER_PROCESS + && +#endif + utp->ut_name[0] != 0 + && strncmp (user, utp->ut_name, sizeof(utp->ut_name)) == 0) { if (debug) continue; endutent();