]> granicus.if.org Git - sudo/commitdiff
added BOTH_LOGS
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 14 Jul 1994 16:12:45 +0000 (16:12 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 14 Jul 1994 16:12:45 +0000 (16:12 +0000)
sudo.h

diff --git a/sudo.h b/sudo.h
index d0e10fdcf4aa0e66cc3b49ce9f04de2b5ad754b7..165aefe94405353f436712e0c8b7e288f1ab5393 100644 (file)
--- a/sudo.h
+++ b/sudo.h
 #  define SYSLOG
 #endif
 
+/*
+ *  Uncomment this if you want to log to a file *and* via syslog(3)
+ */
+/* #define BOTH_LOGS */
+
 /*
  *  If you define NO_ROOT_SUDO, sudo will exit if called by root.
  */
@@ -234,7 +239,9 @@ typedef struct list {
 #  ifndef Syslog_priority_NO
 #    define Syslog_priority_NO LOG_ALERT
 #  endif
-#  undef _PATH_SUDO_LOGFILE
+#  ifndef BOTH_LOGS
+#    undef                     _PATH_SUDO_LOGFILE
+#  endif
 #endif /* SYSLOG  */
 
 /*