summaryrefslogtreecommitdiffstats
path: root/src/sudo.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2020-03-20 16:57:57 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2020-03-20 16:57:57 +0100
commit0fea045597acaefdf129ed882ffa06034c825b40 (patch)
tree2dabc53a58c45fc9785950795263ffe893db9071 /src/sudo.c
parent5934cf54e9d22ee80759d0e78d784f53fa19d78a (diff)
Cleanup code using SUDO_BIN
Diffstat (limited to 'src/sudo.c')
-rw-r--r--src/sudo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sudo.c b/src/sudo.c
index 245b006..e1307da 100644
--- a/src/sudo.c
+++ b/src/sudo.c
@@ -23,6 +23,11 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
+
+#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(DJGPP) || !defined(HAVE_GETEUID)
+#undef SUDO_BIN
+#endif
+
#ifdef SUDO_BIN
#ifdef HAVE_STDLIB_H
#include <stdlib.h>