summaryrefslogtreecommitdiff
path: root/m4/sudo.m4
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2021-09-08 11:09:59 -0600
committerTodd C. Miller <Todd.Miller@sudo.ws>2021-09-08 11:09:59 -0600
commitdf74cd7d34287ab2d6f33c65b7421dbadd3cf71c (patch)
treedfbc7f00930175dbb04f4ae81338f9278bb3cd8d /m4/sudo.m4
parent6536ae1d0768108c48ce7ab705b0df496d7b4ee3 (diff)
downloadsudo-df74cd7d34287ab2d6f33c65b7421dbadd3cf71c.tar.gz
sudo_intercept.so: only replace execvpe() if it is present.
execvpe() is a GNU extension also found on *BSD (but not macOS).
Diffstat (limited to 'm4/sudo.m4')
-rw-r--r--m4/sudo.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/sudo.m4 b/m4/sudo.m4
index a35c26100..7023ac493 100644
--- a/m4/sudo.m4
+++ b/m4/sudo.m4
@@ -505,6 +505,17 @@ AC_DEFUN([SUDO_APPEND_COMPAT_EXP], [
])
dnl
+dnl
+dnl Append one or more symbols to INTERCEPT_EXP
+dnl
+AC_DEFUN([SUDO_APPEND_INTERCEPT_EXP], [
+ for _sym in $1; do
+ INTERCEPT_EXP="${INTERCEPT_EXP}${_sym}
+"
+ done
+])
+
+dnl
dnl Determine the mail spool location
dnl NOTE: must be run *after* check for paths.h
dnl