summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/systems.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-12-20 20:47:58 +0000
committerbrian <brian@FreeBSD.org>1999-12-20 20:47:58 +0000
commit20cf74c9c735899019e7b00c7627d5e9ccd07307 (patch)
treeceaa813d1cf4311d6b541018b9532c47ccf5ecc9 /usr.sbin/ppp/systems.c
parentc0e22cb9c08a78b3a9c1ec30dfced986bd3b4612 (diff)
downloadFreeBSD-src-20cf74c9c735899019e7b00c7627d5e9ccd07307.zip
FreeBSD-src-20cf74c9c735899019e7b00c7627d5e9ccd07307.tar.gz
Fix my '#'-at-end-of-lines change, spammed by a subsequent commit.
Diffstat (limited to 'usr.sbin/ppp/systems.c')
-rw-r--r--usr.sbin/ppp/systems.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c
index b12a46c..935e871 100644
--- a/usr.sbin/ppp/systems.c
+++ b/usr.sbin/ppp/systems.c
@@ -320,9 +320,16 @@ ReadSystem(struct bundle *bundle, const char *name, const char *file,
break;
default:
- if ((wp = findblank(cp, 0)) != NULL && *wp == '#') {
- *wp = '\0';
- cp = strip(cp);
+ if ((wp = findblank(cp, 0)) != NULL) {
+ while (issep(*wp))
+ *wp++ = '\0';
+ if (*wp == '#')
+ *wp = '\0';
+ if (*wp != '\0') {
+ log_Printf(LogWARN, "Bad label in %s (line %d) - too many words.\n",
+ filename, linenum);
+ continue;
+ }
}
wp = strchr(cp, ':');
if (wp == NULL || wp[1] != '\0') {
OpenPOWER on IntegriCloud