]> granicus.if.org Git - sudo/commitdiff
Substitute sysconfdir in the installed sudoers file to get the
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 18 Aug 2010 11:42:47 +0000 (07:42 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 18 Aug 2010 11:42:47 +0000 (07:42 -0400)
correct path for sudoers.d.

--HG--
branch : 1.7

configure
configure.in
sudoers.in [moved from sudoers with 95% similarity]

index f6190623ca7d9a46df6654276a625dd0ead51de3..7ae9cf497dc2aefe7994499973e11c990680ddd0 100755 (executable)
--- a/configure
+++ b/configure
@@ -18470,7 +18470,7 @@ test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
 
-ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudoreplay.man sudo_usage.h"
+ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudoreplay.man sudo_usage.h sudoers"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -19427,6 +19427,7 @@ do
     "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
     "sudoreplay.man") CONFIG_FILES="$CONFIG_FILES sudoreplay.man" ;;
     "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
+    "sudoers") CONFIG_FILES="$CONFIG_FILES sudoers" ;;
 
   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   esac
index af6e7fb8f8c27922e66a59baa87c39c7986174da..ae06875b3ab92fe81916b9c6a6533f2585b4407a 100644 (file)
@@ -2803,7 +2803,7 @@ test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/
 dnl
 dnl Substitute into the Makefile and man pages
 dnl
-AC_CONFIG_FILES([Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudoreplay.man sudo_usage.h])
+AC_CONFIG_FILES([Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudoreplay.man sudo_usage.h sudoers])
 AC_OUTPUT
 
 dnl
similarity index 95%
rename from sudoers
rename to sudoers.in
index 4d346a6f52d63891c28e7e9da40ac94af5650704..42e639e8036b4d236dd40b0ef9bc758eab7d48e3 100644 (file)
--- a/sudoers
@@ -85,5 +85,6 @@ root ALL=(ALL) ALL
 # Defaults targetpw  # Ask for the password of the target user
 # ALL ALL=(ALL) ALL  # WARNING: only use this together with 'Defaults targetpw'
 
-## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
-#includedir /etc/sudoers.d
+## Read drop-in files from @sysconfdir@/sudoers.d
+## (the '#' here does not indicate a comment)
+#includedir @sysconfdir@/sudoers.d