From: Todd C. Miller Date: Fri, 19 Nov 2004 18:39:14 +0000 (+0000) Subject: Use: #include X-Git-Tag: SUDO_1_7_0~796 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c2daa8ecacaeba91b2a89f1a4f6d8b1e55bacb6;p=sudo Use: #include Not: #include "config.h" That way we get the correct config.h when build dir != src dir --- diff --git a/alias.c b/alias.c index b6320e13c..da6895cf9 100644 --- a/alias.c +++ b/alias.c @@ -20,7 +20,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/alloc.c b/alloc.c index d103a8c05..4697d9245 100644 --- a/alloc.c +++ b/alloc.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/afs.c b/auth/afs.c index c4783cb6f..7a98ff6df 100644 --- a/auth/afs.c +++ b/auth/afs.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/aix_auth.c b/auth/aix_auth.c index 16f4ed99e..8afe4e48b 100644 --- a/auth/aix_auth.c +++ b/auth/aix_auth.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/bsdauth.c b/auth/bsdauth.c index 7f3e1404d..3bc32175e 100644 --- a/auth/bsdauth.c +++ b/auth/bsdauth.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/dce.c b/auth/dce.c index f54d8501a..7f4db3d9e 100644 --- a/auth/dce.c +++ b/auth/dce.c @@ -33,7 +33,7 @@ * DCE 1.1). */ -#include "config.h" +#include #include #include diff --git a/auth/fwtk.c b/auth/fwtk.c index 0ecc48d6d..e9740d6fc 100644 --- a/auth/fwtk.c +++ b/auth/fwtk.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/kerb4.c b/auth/kerb4.c index 3095f72b0..f1b51994a 100644 --- a/auth/kerb4.c +++ b/auth/kerb4.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/kerb5.c b/auth/kerb5.c index 3d477eb33..d1e9cd4a8 100644 --- a/auth/kerb5.c +++ b/auth/kerb5.c @@ -21,7 +21,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/pam.c b/auth/pam.c index 256d130b9..ca2995616 100644 --- a/auth/pam.c +++ b/auth/pam.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/passwd.c b/auth/passwd.c index d0f4cd0dc..1eeb6f23c 100644 --- a/auth/passwd.c +++ b/auth/passwd.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/rfc1938.c b/auth/rfc1938.c index ddf13f017..19d815b96 100644 --- a/auth/rfc1938.c +++ b/auth/rfc1938.c @@ -19,7 +19,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/secureware.c b/auth/secureware.c index 9e9ffa271..bbfaa7fbf 100644 --- a/auth/secureware.c +++ b/auth/secureware.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/securid.c b/auth/securid.c index fe88a698a..134e688d9 100644 --- a/auth/securid.c +++ b/auth/securid.c @@ -21,7 +21,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/securid5.c b/auth/securid5.c index f5cd7aefc..5a2f40ea5 100644 --- a/auth/securid5.c +++ b/auth/securid5.c @@ -22,7 +22,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/sia.c b/auth/sia.c index a540535a5..356bcb7fc 100644 --- a/auth/sia.c +++ b/auth/sia.c @@ -20,7 +20,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/auth/sudo_auth.c b/auth/sudo_auth.c index dc7530391..f9173cc3f 100644 --- a/auth/sudo_auth.c +++ b/auth/sudo_auth.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/check.c b/check.c index d55a96fe8..81f754bb0 100644 --- a/check.c +++ b/check.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/closefrom.c b/closefrom.c index 1f04e9900..70336acd4 100644 --- a/closefrom.c +++ b/closefrom.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include "config.h" +#include #include #include diff --git a/defaults.c b/defaults.c index a081e48b2..65472191c 100644 --- a/defaults.c +++ b/defaults.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include @@ -46,7 +46,7 @@ #include "sudo.h" #include "parse.h" -#include "gram.h" +#include #ifndef lint static const char rcsid[] = "$Sudo$"; diff --git a/env.c b/env.c index 4f3860349..2e13a3396 100644 --- a/env.c +++ b/env.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/error.c b/error.c index e70ded711..e25fecc52 100644 --- a/error.c +++ b/error.c @@ -19,7 +19,7 @@ #include #include -#include "config.h" +#include #include "compat.h" #include "error.h" diff --git a/fileops.c b/fileops.c index f36a7400f..abd487358 100644 --- a/fileops.c +++ b/fileops.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/find_path.c b/find_path.c index 3045fd136..7ec916dd5 100644 --- a/find_path.c +++ b/find_path.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/fnmatch.c b/fnmatch.c index 4a9c4d3f9..cbf4fd25b 100644 --- a/fnmatch.c +++ b/fnmatch.c @@ -39,7 +39,7 @@ static char rcsid[] = "$OpenBSD: fnmatch.c,v 1.6 1998/03/19 00:29:59 millert Exp * Compares a filename or pathname to a pattern. */ -#include "config.h" +#include #include #include diff --git a/getcwd.c b/getcwd.c index 2f39ecb42..da3c2c023 100644 --- a/getcwd.c +++ b/getcwd.c @@ -27,7 +27,7 @@ * SUCH DAMAGE. */ -#include "config.h" +#include #include #include diff --git a/getprogname.c b/getprogname.c index 867bb6e94..eff79fdcc 100644 --- a/getprogname.c +++ b/getprogname.c @@ -21,7 +21,7 @@ #include #include -#include "config.h" +#include #ifndef lint static const char rcsid[] = "$Sudo$"; diff --git a/getspwuid.c b/getspwuid.c index 463f44b40..68b5f1f33 100644 --- a/getspwuid.c +++ b/getspwuid.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/gettime.c b/gettime.c index dc426becb..cdc0a46ac 100644 --- a/gettime.c +++ b/gettime.c @@ -19,7 +19,7 @@ #include #include -#include "config.h" +#include #include #ifndef lint diff --git a/glob.c b/glob.c index ac98020e5..45d01281a 100644 --- a/glob.c +++ b/glob.c @@ -51,7 +51,7 @@ * Number of matches in the current invocation of glob. */ -#include "config.h" +#include #include #include diff --git a/goodpath.c b/goodpath.c index fdfb50151..af8c55479 100644 --- a/goodpath.c +++ b/goodpath.c @@ -19,7 +19,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/gram.c b/gram.c index 980501410..3afdb82d4 100644 --- a/gram.c +++ b/gram.c @@ -39,7 +39,7 @@ static char yyrcsid[] * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/gram.y b/gram.y index ba653e353..bbbd4bd96 100644 --- a/gram.y +++ b/gram.y @@ -21,7 +21,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/interfaces.c b/interfaces.c index c2fb8349b..d009eef3f 100644 --- a/interfaces.c +++ b/interfaces.c @@ -27,7 +27,7 @@ struct mbuf; struct rtentry; #endif -#include "config.h" +#include #include #include diff --git a/ldap.c b/ldap.c index b07cc5ed6..b36aceb24 100644 --- a/ldap.c +++ b/ldap.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include "config.h" +#include #include #include diff --git a/logging.c b/logging.c index cf9053d7b..e28f65d21 100644 --- a/logging.c +++ b/logging.c @@ -22,7 +22,7 @@ # include #endif -#include "config.h" +#include #include #include diff --git a/match.c b/match.c index 59dbd82c9..bf1f6f7e2 100644 --- a/match.c +++ b/match.c @@ -20,7 +20,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include @@ -79,7 +79,7 @@ #include "sudo.h" #include "interfaces.h" #include "parse.h" -#include "gram.h" +#include #ifndef HAVE_FNMATCH # include "emul/fnmatch.h" diff --git a/mon_systrace.c b/mon_systrace.c index a1d55fdc1..9e449369c 100644 --- a/mon_systrace.c +++ b/mon_systrace.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include "config.h" +#include #include #include diff --git a/parse.c b/parse.c index 13825f754..97a512f1e 100644 --- a/parse.c +++ b/parse.c @@ -20,7 +20,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include @@ -48,7 +48,7 @@ #include "sudo.h" #include "parse.h" -#include "gram.h" +#include #ifndef lint static const char rcsid[] = "$Sudo$"; diff --git a/redblack.c b/redblack.c index 5cb7e5b64..526d0f625 100644 --- a/redblack.c +++ b/redblack.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include "config.h" +#include #include #include diff --git a/set_perms.c b/set_perms.c index 245b28697..c01c854e6 100644 --- a/set_perms.c +++ b/set_perms.c @@ -18,7 +18,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include diff --git a/snprintf.c b/snprintf.c index 18b08b034..1735d2996 100644 --- a/snprintf.c +++ b/snprintf.c @@ -38,7 +38,7 @@ * NOTE: does not support floating point. */ -#include "config.h" +#include #include #include diff --git a/strcasecmp.c b/strcasecmp.c index 1f201c0e7..8eabb1cab 100644 --- a/strcasecmp.c +++ b/strcasecmp.c @@ -29,7 +29,7 @@ * @(#)strcasecmp.c 8.1 (Berkeley) 6/4/93 */ -#include "config.h" +#include #include #ifndef lint diff --git a/strerror.c b/strerror.c index 0c0998157..6dc08f9c5 100644 --- a/strerror.c +++ b/strerror.c @@ -21,7 +21,7 @@ #include #include -#include "config.h" +#include #ifndef lint static const char rcsid[] = "$Sudo$"; diff --git a/strlcat.c b/strlcat.c index 088434fc3..2127b3833 100644 --- a/strlcat.c +++ b/strlcat.c @@ -19,7 +19,7 @@ #include #include -#include "config.h" +#include #ifndef lint static const char rcsid[] = "$Sudo$"; diff --git a/strlcpy.c b/strlcpy.c index d089a6129..06a87c207 100644 --- a/strlcpy.c +++ b/strlcpy.c @@ -18,7 +18,7 @@ #include -#include "config.h" +#include #ifndef lint static const char rcsid[] = "$Sudo$"; diff --git a/sudo.c b/sudo.c index 2d3f89b60..a0bf6f3cc 100644 --- a/sudo.c +++ b/sudo.c @@ -27,7 +27,7 @@ # include #endif -#include "config.h" +#include #include #include diff --git a/sudo_edit.c b/sudo_edit.c index 8b3a97c6e..2858a1294 100644 --- a/sudo_edit.c +++ b/sudo_edit.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include "config.h" +#include #include #include diff --git a/sudo_noexec.c b/sudo_noexec.c index dd44301b7..129ea3a77 100644 --- a/sudo_noexec.c +++ b/sudo_noexec.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include "config.h" +#include #include diff --git a/testsudoers.c b/testsudoers.c index 7603f449d..dbb717e89 100644 --- a/testsudoers.c +++ b/testsudoers.c @@ -22,7 +22,7 @@ #define _SUDO_MAIN -#include "config.h" +#include #include #include @@ -63,7 +63,7 @@ #include "sudo.h" #include "interfaces.h" #include "parse.h" -#include "gram.h" +#include #ifndef HAVE_FNMATCH # include "emul/fnmatch.h" diff --git a/tgetpass.c b/tgetpass.c index 2359ef899..44a2f31a1 100644 --- a/tgetpass.c +++ b/tgetpass.c @@ -22,7 +22,7 @@ # include #endif -#include "config.h" +#include #include #include diff --git a/toke.c b/toke.c index 99458375f..8d6ea15a1 100644 --- a/toke.c +++ b/toke.c @@ -984,7 +984,7 @@ char *yytext; * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include @@ -1013,7 +1013,7 @@ char *yytext; #include #include "sudo.h" #include "parse.h" -#include "gram.h" +#include #ifndef lint static const char rcsid[] = "$Sudo$"; diff --git a/toke.l b/toke.l index ea0f2b7f8..0c2ae92b7 100644 --- a/toke.l +++ b/toke.l @@ -22,7 +22,7 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -#include "config.h" +#include #include #include @@ -51,7 +51,7 @@ #include #include "sudo.h" #include "parse.h" -#include "gram.h" +#include #ifndef lint static const char rcsid[] = "$Sudo$"; diff --git a/utimes.c b/utimes.c index a50609479..9ba51f137 100644 --- a/utimes.c +++ b/utimes.c @@ -19,7 +19,7 @@ #include #include -#include "config.h" +#include #ifdef HAVE_UTIME_H # include diff --git a/visudo.c b/visudo.c index 8045721ba..75a0fd01d 100644 --- a/visudo.c +++ b/visudo.c @@ -28,7 +28,7 @@ # include #endif -#include "config.h" +#include #include #include @@ -77,7 +77,7 @@ #include "sudo.h" #include "interfaces.h" #include "parse.h" -#include "gram.h" +#include #include "version.h" #ifndef lint diff --git a/zero_bytes.c b/zero_bytes.c index aee719fee..0937ad382 100644 --- a/zero_bytes.c +++ b/zero_bytes.c @@ -16,7 +16,7 @@ #include -#include "config.h" +#include #ifndef lint static const char rcsid[] = "$Sudo$";