summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Eichin <eichin@mit.edu>1995-03-25 04:16:28 +0000
committerMark Eichin <eichin@mit.edu>1995-03-25 04:16:28 +0000
commit6c4053568debeea1472c73953baad5a9ce8ea061 (patch)
treefd6944603464b109212d6232d757272fef87414b /src
parent7380b50b9ff627ec87860f3a48e2f7008aff28a5 (diff)
downloadkrb5-6c4053568debeea1472c73953baad5a9ce8ea061.tar.gz
krb5-6c4053568debeea1472c73953baad5a9ce8ea061.tar.xz
krb5-6c4053568debeea1472c73953baad5a9ce8ea061.zip
fix copied code in HAVE_GETUTENT case
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5244 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/appl/bsd/logutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/appl/bsd/logutil.c b/src/appl/bsd/logutil.c
index 70dd6588d..dbc6738ae 100644
--- a/src/appl/bsd/logutil.c
+++ b/src/appl/bsd/logutil.c
@@ -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;