diff options
| author | Ian Lepore <ian@FreeBSD.org> | 2014-11-23 19:13:17 +0000 |
|---|---|---|
| committer | Ian Lepore <ian@FreeBSD.org> | 2014-11-23 19:13:17 +0000 |
| commit | c72731180aef37b723f1a40b9e2603dc5e43f6ed (patch) | |
| tree | 4915f358815622ac86f616f16cbc5824f529f828 /usr.sbin/config | |
| parent | d932810143bb7ebf932a1ad8d4756402048a2564 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/config')
| -rw-r--r-- | usr.sbin/config/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c index 86ecfa6cd4bc..ff18d3c86109 100644 --- a/usr.sbin/config/main.c +++ b/usr.sbin/config/main.c @@ -314,6 +314,11 @@ begin: } cp = line; *cp++ = ch; + /* Negation operator is a word by itself. */ + if (ch == '!') { + *cp = 0; + return (line); + } while ((ch = getc(fp)) != EOF) { if (isspace(ch)) break; |
