From: Todd C. Miller Date: Mon, 10 Oct 2016 14:33:57 +0000 (-0600) Subject: add missing guard around wordexp() X-Git-Tag: SUDO_1_8_18p1^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9dbd45ff66370556a8b198a6b86b9b33ee03751c;p=sudo add missing guard around wordexp() --- diff --git a/src/sudo_noexec.c b/src/sudo_noexec.c index c2ddfa9b1..ebd3e5e96 100644 --- a/src/sudo_noexec.c +++ b/src/sudo_noexec.c @@ -164,6 +164,7 @@ FN_NAME(popen)(const char *c, const char *t) } INTERPOSE(popen) +#ifdef HAVE_WORDEXP /* * We can't use a wrapper for wordexp(3) since we still want to call * the real wordexp(3) but with WRDE_NOCMD added to the flags argument. @@ -211,6 +212,7 @@ FN_NAME(wordexp)(const char *words, wordexp_t *we, int flags) #endif /* HAVE___INTERPOSE */ } INTERPOSE(wordexp) +#endif /* HAVE_WORDEXP */ /* * On Linux we can use a seccomp() filter to disable exec.