From ed9475a8c278f8ee85398fde35bd239a890ff944 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 17 May 2004 20:28:53 +0000 Subject: [PATCH] No longer use /tmp/.odus as a possible timestamp dir unless specifically configured to do so. Instead, if no /var/run exists, use /var/adm/sudo or /usr/adm/sudo. --- configure | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/configure b/configure index feb7f37ad..3f1c8d2bf 100755 --- a/configure +++ b/configure @@ -29473,14 +29473,22 @@ echo "${ECHO_T}/var/run/sudo" >&6 EOF timedir="/var/run/sudo" -else - echo "$as_me:$LINENO: result: /tmp/.odus" >&5 -echo "${ECHO_T}/tmp/.odus" >&6 +elif test -d "/var/adm"; then + echo "$as_me:$LINENO: result: /var/adm/sudo" >&5 +echo "${ECHO_T}/var/adm/sudo" >&6 cat >>confdefs.h <<\EOF -#define _PATH_SUDO_TIMEDIR "/tmp/.odus" +#define _PATH_SUDO_TIMEDIR "/var/adm/sudo" EOF - timedir="/tmp/.odus" + timedir="/var/adm/sudo" +else + echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5 +echo "${ECHO_T}/usr/adm/sudo" >&6 + cat >>confdefs.h <<\EOF +#define _PATH_SUDO_TIMEDIR "/usr/adm/sudo" +EOF + + timedir="/usr/adm/sudo" fi