X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fslocal.c;h=ca23fd89457900685cc25449f7f4d8a1e73c6f25;hp=bbf1850615034813236eae29014838b0ab8d60cc;hb=56539e8eafef3e955be9d08254d61b139faf34f1;hpb=8979d70884315e7de858d4de2c0bb5287ad7bbbb 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();