summaryrefslogtreecommitdiff
path: root/pathnames.h.in
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>2014-09-20 10:16:46 -0600
committerTodd C. Miller <Todd.Miller@courtesan.com>2014-09-20 10:16:46 -0600
commit1b098c969af2d9ccfbb01873e98e16cb4bdc4db0 (patch)
treeef64a8fff73f960d90048c63c2822aba8e5f83f6 /pathnames.h.in
parente73bf14381eb942941f01117f15f304b0cff5203 (diff)
downloadsudo-1b098c969af2d9ccfbb01873e98e16cb4bdc4db0.tar.gz
Only redefine _PATH_BSHELL on AIX if we included paths.h.
Diffstat (limited to 'pathnames.h.in')
-rw-r--r--pathnames.h.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/pathnames.h.in b/pathnames.h.in
index 797cc037c..e831eee65 100644
--- a/pathnames.h.in
+++ b/pathnames.h.in
@@ -179,9 +179,9 @@
# undef _PATH_NETSVC_CONF
#endif /* _PATH_NETSVC_CONF */
-/* On AIX, _PATH_BSHELL is /usr/bin/bsh but we want /usr/bin/sh */
+/* On AIX, _PATH_BSHELL in paths.h is /usr/bin/bsh but we want /usr/bin/sh */
#ifndef _PATH_SUDO_BSHELL
-# ifdef _AIX
+# if defined(_AIX) && defined(HAVE_PATHS_H)
# define _PATH_SUDO_BSHELL "/usr/bin/sh"
# else
# define _PATH_SUDO_BSHELL _PATH_BSHELL