Corrected the arguments to updwtmpx, and getutxid
authorRichard Basch <probe@mit.edu>
Wed, 28 Dec 1994 20:05:27 +0000 (20:05 +0000)
committerRichard Basch <probe@mit.edu>
Wed, 28 Dec 1994 20:05:27 +0000 (20:05 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4768 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/logutil.c

index 4fcef6d39c078177845b38073630328f7970b632..ac5b459361b8db3354d93b01f9230bbd5be25ed1 100644 (file)
@@ -86,7 +86,7 @@ void update_utmp(ent, username, line, host)
     
 #ifdef HAVE_SETUTXENT
     getutmpx(ent, &utx);
-    getutxid(&ent);
+    getutxid(&utx);
     setutxent();
     pututxline(&utx);
     endutxent();
@@ -116,7 +116,7 @@ void update_wtmp(ent)
     struct utmpx utx;
 
     getutmpx(ent, &utx);
-    updwtmpx(&utx);
+    updwtmpx(WTMPX_FILE, &utx);
 #endif
 
 #ifdef HAVE_UPDWTMP