fix copied code in HAVE_GETUTENT case
authorMark Eichin <eichin@mit.edu>
Sat, 25 Mar 1995 04:16:28 +0000 (04:16 +0000)
committerMark Eichin <eichin@mit.edu>
Sat, 25 Mar 1995 04:16:28 +0000 (04:16 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5244 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/logutil.c

index 70dd6588d89c254da98aff0744966a8b94fac742..dbc6738aefb818961095cf468b19c7622b7f171c 100644 (file)
@@ -172,7 +172,7 @@ void update_wtmp(ent)
 #endif
          (void)time(&ut.ut_time);
 #ifdef HAVE_GETUTENT
-         if (*name) {
+         if (ent->ut_name) {
            if (!ut.ut_pid)
              ut.ut_pid = getpid();
            ut.ut_type = USER_PROCESS;