summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-03-02 19:50:48 +0000
committertholo <tholo@openbsd.org>1996-03-02 19:50:48 +0000
commit7d2e20b0184db8f1acf83370e7391b20e271e652 (patch)
treeda6eab8f2ae19f155ce3daa9d31f37e2e759e1c9
parentUsing TCP broke ypxfr -C which in turn caused yppush to fail on the (diff)
downloadwireguard-openbsd-7d2e20b0184db8f1acf83370e7391b20e271e652.tar.xz
wireguard-openbsd-7d2e20b0184db8f1acf83370e7391b20e271e652.zip
Make sure SYSV-style include directives are only matched when there is a
whitespace character after the word "include"
-rw-r--r--usr.bin/make/parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index f1a6ac0e87a..bc14d48084c 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -2536,6 +2536,7 @@ Parse_File(name, stream)
}
#ifdef SYSVINCLUDE
} else if (strncmp (line, "include", 7) == 0 &&
+ isspace((unsigned char) line[7]) &&
strchr(line, ':') == NULL) {
/*
* It's an S3/S5-style "include".