]> granicus.if.org Git - sudo/commitdiff
src/load_plugins.c needs _PATH_SUDO_CONF so allow it to be overridden
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 18 Feb 2016 23:13:51 +0000 (16:13 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 18 Feb 2016 23:13:51 +0000 (16:13 -0700)
via the Makefile like other consumers of _PATH_SUDO_CONF.  Bug #735

src/Makefile.in

index fcd501937de154c88cefd432ce27cc289ced35d7..6b10546628d9a095e3fb44413a1a46740144e3a4 100644 (file)
@@ -41,7 +41,8 @@ LT_LIBS = $(top_builddir)/lib/util/libsudo_util.la
 LIBS = @LIBS@ @SUDO_LIBS@ @GETGROUPS_LIB@ @NET_LIBS@ $(LT_LIBS)
 
 # C preprocessor defines
-CPPDEFS = -DLOCALEDIR=\"$(localedir)\"
+CPPDEFS = -D_PATH_SUDO_CONF=\"$(sysconfdir)/sudo.conf\" \
+         -DLOCALEDIR=\"$(localedir)\"
 
 # C preprocessor flags
 CPPFLAGS = -I$(incdir) -I$(top_builddir) -I. -I$(srcdir) -I$(top_srcdir) \