mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
Update.
2002-02-28 Ulrich Drepper <drepper@redhat.com> * login/login.c (login): Always initialize ut_line field [PR libc/2991].
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2002-02-28 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* login/login.c (login): Always initialize ut_line field
|
||||||
|
[PR libc/2991].
|
||||||
|
|
||||||
2002-02-28 Jakub Jelinek <jakub@redhat.com>
|
2002-02-28 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* sysdeps/i386/Makefile (sysdep_routines): Add
|
* sysdeps/i386/Makefile (sysdep_routines): Add
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
|
/* Copyright (C) 1996, 1997, 1998, 2002 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||||
|
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
02111-1307 USA. */
|
02111-1307 USA. */
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -133,6 +134,10 @@ login (const struct utmp *ut)
|
|||||||
if (tty != _tty)
|
if (tty != _tty)
|
||||||
free (tty); /* Free buffer malloced by tty_name. */
|
free (tty); /* Free buffer malloced by tty_name. */
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
/* We provide a default value so that the output does not contain
|
||||||
|
an random bytes in this field. */
|
||||||
|
strncpy (copy.ut_line, "???", UT_LINESIZE);
|
||||||
|
|
||||||
/* Update the WTMP file. Here we have to add a new entry. */
|
/* Update the WTMP file. Here we have to add a new entry. */
|
||||||
updwtmp (_PATH_WTMP, ©);
|
updwtmp (_PATH_WTMP, ©);
|
||||||
|
@@ -93,6 +93,9 @@ libc {
|
|||||||
GLIBC_PRIVATE {
|
GLIBC_PRIVATE {
|
||||||
# functions which have an additional interface since they are
|
# functions which have an additional interface since they are
|
||||||
# are cancelable.
|
# are cancelable.
|
||||||
__libc_system; __on_exit;
|
__libc_system;
|
||||||
|
|
||||||
|
# functions used in other libraries.
|
||||||
|
__on_exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user