[PATCH] Minor bug in UTMP file detection
Kelledin <[email protected]> Sat, 12 Feb 2005 16:48:11 -0600
| Newsgroups | gmane.linux.pld.shadow.general |
|---|---|
| Message-ID | <[email protected]> |
The configure{,.in} script for 4.0.7 has a broken routine for
checking "location of utmp". Not a practical problem in most
cases--most systems have decent [sg]etutent() functions, so
shadow generally doesn't need to know where the utmp file is
anyways--but if the check's in there, it might as well be done
right. ;-)
Patch attached.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
shadow-4.0.7-1-utmp.patch
(text/x-diff, 1.2 KB)
Synopsis: UTMP path detection fix for shadow Applies to: shadow-4.0.7.tar.bz2 Author: Kelledin <[email protected]> Date: Sat Feb 12 2005 Purpose: The configure script from shadow-4.0.7 has a broken UTMP path detection routine. This patch fixes it. diff -Naur shadow-4.0.7/configure.in shadow-4.0.7-utmp/configure.in --- shadow-4.0.7/configure.in 2004-12-20 02:31:26.000000000 +0000 +++ shadow-4.0.7-utmp/configure.in 2005-02-12 22:32:56.000000000 +0000 @@ -152,7 +152,7 @@ fi AC_CACHE_CHECK([location of utmp], shadow_cv_utmpdir, -[for utmpdir in /var/run /var/adm /usr/adm /etc none; do +[for shadow_cv_utmpdir in /var/run /var/adm /usr/adm /etc none; do if test -f $shadow_cv_utmpdir/utmp; then break fi diff -Naur shadow-4.0.7/configure shadow-4.0.7-utmp/configure --- shadow-4.0.7/configure 2005-01-18 00:10:00.000000000 +0000 +++ shadow-4.0.7-utmp/configure 2005-02-12 22:33:04.000000000 +0000 @@ -22692,7 +22692,7 @@ if test "${shadow_cv_utmpdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - for utmpdir in /var/run /var/adm /usr/adm /etc none; do + for shadow_cv_utmpdir in /var/run /var/adm /usr/adm /etc none; do if test -f $shadow_cv_utmpdir/utmp; then break fi