From af2bbaf7ca2423b9ecb93ca3257be738671f9918 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 30 Mar 1995 02:12:36 +0000 Subject: [PATCH] _PATH_SUDO_LOGFILE now set based on configure --- pathnames.h.in | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pathnames.h.in b/pathnames.h.in index ecd58f484..9254fd85d 100644 --- a/pathnames.h.in +++ b/pathnames.h.in @@ -42,10 +42,6 @@ #define _PATH_SUDO_TIMEDIR "/tmp/.odus" #endif /* _PATH_SUDO_TIMEDIR */ -#ifndef _PATH_SUDO_LOGFILE -#define _PATH_SUDO_LOGFILE "/var/adm/sudo.log" -#endif /* _PATH_SUDO_LOGFILE */ - #ifndef _PATH_TTY #define _PATH_TTY "/dev/tty" #endif /* _PATH_TTY */ @@ -55,6 +51,14 @@ * configure's values here if you want. */ +/* + * Where to put the sudo log file when logging to a file this + * is /var/log/sudo.log if /var/log exists, else /var/adm/sudo.log + */ +#ifndef _PATH_SUDO_LOGFILE +#define _PATH_SUDO_LOGFILE _SUDO_PATH_LOGFILE +#endif /* _PATH_SUDO_LOGFILE */ + #ifndef _PATH_SENDMAIL #define _PATH_SENDMAIL _SUDO_PATH_SENDMAIL #endif /* _PATH_SENDMAIL */