diff options
author | Todd C. Miller <Todd.Miller@courtesan.com> | 1994-03-12 18:36:53 +0000 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@courtesan.com> | 1994-03-12 18:36:53 +0000 |
commit | b88c8f6f29bb490bcd05469a513e2c8c6c054568 (patch) | |
tree | 162e8a3e366a206a9c726bd9e8c6ac3f924c962a /parse.c | |
parent | 271a0150d38bc99fbb6c98260bb464e2fb94c72c (diff) | |
download | sudo-b88c8f6f29bb490bcd05469a513e2c8c6c054568.tar.gz |
updated to work with configure + pathnames.h
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -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); } |