summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>1994-03-12 18:36:53 +0000
committerTodd C. Miller <Todd.Miller@courtesan.com>1994-03-12 18:36:53 +0000
commitb88c8f6f29bb490bcd05469a513e2c8c6c054568 (patch)
tree162e8a3e366a206a9c726bd9e8c6ac3f924c962a /parse.c
parent271a0150d38bc99fbb6c98260bb464e2fb94c72c (diff)
downloadsudo-b88c8f6f29bb490bcd05469a513e2c8c6c054568.tar.gz
updated to work with configure + pathnames.h
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index ab7c99a06..f20a91d19 100644
--- a/parse.c
+++ b/parse.c
@@ -38,8 +38,21 @@
static char rcsid[] = "$Id$";
#endif /* lint */
+#include "config.h"
+
#include <stdio.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif /* HAVE_UNISTD_H */
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif /* HAVE_STRING_H */
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif /* HAVE_STRINGS_H */
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif /* HAVE_MALLOC_H */
#include <ctype.h>
#include <sys/param.h>
#include <sys/types.h>
@@ -430,8 +443,8 @@ int validate()
/* become root */
be_root();
- if ((sudoers_fp = fopen(SUDOERS, "r")) == NULL) {
- perror(SUDOERS);
+ if ((sudoers_fp = fopen(_PATH_SUDO_SUDOERS, "r")) == NULL) {
+ perror(_PATH_SUDO_SUDOERS);
log_error(NO_SUDOERS_FILE);
exit(1);
}