From 22b0607b9390828dd2841cd383ca6bfc24218164 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 18 Apr 2000 19:58:03 +0000 Subject: [PATCH] Update. * sysdeps/generic/updwtmp.c: Remove daemon support. --- ChangeLog | 2 ++ sysdeps/generic/updwtmp.c | 12 +++--------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index a49a4c9..92f0f8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2000-04-18 Ulrich Drepper + * sysdeps/generic/updwtmp.c: Remove daemon support. + * login/Makefile (routines): Remove utmp_daemon. * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument. diff --git a/sysdeps/generic/updwtmp.c b/sysdeps/generic/updwtmp.c index d6f29b1..5ab7ce6 100644 --- a/sysdeps/generic/updwtmp.c +++ b/sysdeps/generic/updwtmp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Mark Kettenis , 1997. @@ -28,14 +28,8 @@ void __updwtmp (const char *wtmp_file, const struct utmp *utmp) { - /* See whether utmpd is running. */ - if ((*__libc_utmp_daemon_functions.updwtmp) (wtmp_file, utmp) < 0) - { - const char *file_name; + file_name = TRANSFORM_UTMP_FILE_NAME (wtmp_file); - file_name = TRANSFORM_UTMP_FILE_NAME (wtmp_file); - - (*__libc_utmp_file_functions.updwtmp) (file_name, utmp); - } + (*__libc_utmp_file_functions.updwtmp) (file_name, utmp); } weak_alias (__updwtmp, updwtmp) -- 2.7.4