diff options
| author | Brian Somers <brian@FreeBSD.org> | 1999-12-20 20:30:30 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1999-12-20 20:30:30 +0000 |
| commit | dbde41c0b7509d5c87e635c49cbbe19bcf8b9751 (patch) | |
| tree | 3b2f1c3a5e5bc75538ed060d2a84ab20209a0062 | |
| parent | 9409953d8411081fa9617be994740890afb791fe (diff) | |
Notes
| -rw-r--r-- | usr.sbin/ppp/systems.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index cc187199b1d4..a29b90244555 100644 --- a/usr.sbin/ppp/systems.c +++ b/usr.sbin/ppp/systems.c @@ -323,14 +323,9 @@ ReadSystem(struct bundle *bundle, const char *name, const char *file, break; default: - if ((wp = findblank(cp, 0)) != NULL) { - while (issep(*wp)) - *wp++ = '\0'; - if (*wp != '#' && *wp != '\0') { - log_Printf(LogWARN, "Bad label in %s (line %d) - too many words.\n", - filename, linenum); - continue; - } + if ((wp = findblank(cp, 0)) != NULL && *wp == '#') { + *wp = '\0'; + cp = strip(cp); } wp = strchr(cp, ':'); if (wp == NULL || wp[1] != '\0') { @@ -368,8 +363,8 @@ ReadSystem(struct bundle *bundle, const char *name, const char *file, log_Printf(LogWARN, "%s: %d: Syntax error\n", filename, linenum); else { allowcmd = argc > 0 && !strcasecmp(argv[0], "allow"); - if ((!(how == SYSTEM_EXEC) && allowcmd) || - ((how == SYSTEM_EXEC) && !allowcmd)) { + if ((how != SYSTEM_EXEC && allowcmd) || + (how == SYSTEM_EXEC && !allowcmd)) { /* * Disable any context so that warnings are given to everyone, * including syslog. |
