Author: bdubbs
Date: Tue Dec  1 12:48:59 2020
New Revision: 4235

Log:
sudo-1.9.4 needs a patch from upstream

Added:
   trunk/sudo/sudo-1.9.4-upstream_fix-1.patch

Added: trunk/sudo/sudo-1.9.4-upstream_fix-1.patch
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ trunk/sudo/sudo-1.9.4-upstream_fix-1.patch  Tue Dec  1 12:48:59 2020        
(r4235)
@@ -0,0 +1,41 @@
+Submitted By: Bruce Dubbs (bdubbs -aT- linuxfromscratch -DoT- org)
+Date: 2020-12-01
+Initial Package Version: 1.9.4
+Origin: Upstream
+Upstream Status: Incorportated
+Description: Fix a bug that allows building when --without-sendmail is 
specified
+
+--- a/lib/eventlog/eventlog.c  Sun Nov 29 15:11:34 2020 -0700
++++ b/lib/eventlog/eventlog.c  Mon Nov 30 13:18:12 2020 -0700
+@@ -78,7 +78,7 @@
+ static FILE *eventlog_stub_open_log(int type, const char *logfile);
+ static void eventlog_stub_close_log(int type, FILE *fp);
+
+-/* Eventlog config settings */
++/* Eventlog config settings (default values). */
+ static struct eventlog_config evl_conf = {
+     EVLOG_NONE,                       /* type */
+     EVLOG_SUDO,                       /* format */
+@@ -91,7 +91,11 @@
+     false,                    /* omit_hostname */
+     _PATH_SUDO_LOGFILE,               /* logpath */
+     "%h %e %T",                       /* time_fmt */
++#ifdef _PATH_SUDO_SENDMAIL
+     _PATH_SUDO_SENDMAIL,      /* mailerpath */
++#else
++    NULL,                     /* mailerpath (disabled) */
++#endif
+     "-t",                     /* mailerflags */
+     NULL,                     /* mailfrom */
+     MAILTO,                   /* mailto */
+@@ -1436,8 +1440,10 @@
+       evl_conf.logpath = _PATH_SUDO_LOGFILE;
+     if (evl_conf.time_fmt == NULL)
+       evl_conf.time_fmt = "%h %e %T";
++#ifdef _PATH_SUDO_SENDMAIL
+     if (evl_conf.mailerpath == NULL)
+       evl_conf.mailerpath = _PATH_SUDO_SENDMAIL;
++#endif
+     if (evl_conf.mailerflags == NULL)
+       evl_conf.mailerflags = "-t";
+     if (evl_conf.mailto == NULL)
-- 
http://lists.linuxfromscratch.org/listinfo/patches
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to