mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
2002-09-18 Bruno Haible <bruno@clisp.org>
* login/logout.c (logout): Don't assume ut_time has the same size as a time_t. * login/logwtmp.c (logwtmp): Likewise.
This commit is contained in:
parent
2ed4a17c9a
commit
51104ec014
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1996, 1997, 2002 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||
|
||||
@ -53,7 +53,7 @@ logout (const char *line)
|
||||
#if _HAVE_UT_TV - 0
|
||||
gettimeofday (&ut->ut_tv, NULL);
|
||||
#else
|
||||
time (&ut->ut_time);
|
||||
ut->ut_time = time (NULL);
|
||||
#endif
|
||||
#if _HAVE_UT_TYPE - 0
|
||||
ut->ut_type = DEAD_PROCESS;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1996, 1997, 2002 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||
|
||||
@ -46,7 +46,7 @@ logwtmp (const char *line, const char *name, const char *host)
|
||||
#if _HAVE_UT_TV - 0
|
||||
__gettimeofday (&ut.ut_tv, NULL);
|
||||
#else
|
||||
time (&ut.ut_time);
|
||||
ut.ut_time = time (NULL);
|
||||
#endif
|
||||
|
||||
updwtmp (_PATH_WTMP, &ut);
|
||||
|
Loading…
Reference in New Issue
Block a user