/[inetutils]/inetutils/libinetutils/utmp_logout.c
ViewVC logotype

Diff of /inetutils/libinetutils/utmp_logout.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by alainm, Wed Jul 19 04:08:38 2000 UTC revision 1.6 by marcus, Fri Nov 2 21:50:13 2001 UTC
# Line 66  utmp_logout(char   *line) Line 66  utmp_logout(char   *line)
66          strncpy(utx.ut_line, line, sizeof(utx.ut_line));          strncpy(utx.ut_line, line, sizeof(utx.ut_line));
67    
68          if (ut = getutline(&utx)) {          if (ut = getutline(&utx)) {
69    #ifdef HAVE_UTMP_UT_TYPE
70                  ut->ut_type = DEAD_PROCESS;                  ut->ut_type = DEAD_PROCESS;
71    #endif
72  #ifdef HAVE_UTMP_UT_EXIT  #ifdef HAVE_UTMP_UT_EXIT
73                  ut->ut_exit.e_termination = 0;                  ut->ut_exit.e_termination = 0;
74                  ut->ut_exit.e_exit = 0;                  ut->ut_exit.e_exit = 0;
75  #endif  #endif
76    #ifdef HAVE_UTMP_UT_TV
77                    gettimeofday (&(utx.ut_tv), 0);
78    #else
79                  time(&(utx.ut_time));                  time(&(utx.ut_time));
80    #endif
81                  pututline(ut);                  pututline(ut);
82    #ifdef HAVE_UPDWTMP
83                  updwtmp(WTMP_FILE, ut);                  updwtmp(WTMP_FILE, ut);
84    #endif /* XXX #else logwtmp ? */
85          }          }
86          endutent();          endutent();
87  #endif  #endif

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26