diff options
author | ume <ume@FreeBSD.org> | 2006-04-30 21:25:00 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2006-04-30 21:25:00 +0000 |
commit | 86fb2d93f4ba2ea30dc3e9675795788558ac2207 (patch) | |
tree | fd77eed7809e52afc90779f5b59f89d1f4b9f1bc /lib/libc | |
parent | 6e0d278f17b3328fb5ad6a46878b652429cee021 (diff) | |
download | FreeBSD-src-86fb2d93f4ba2ea30dc3e9675795788558ac2207.zip FreeBSD-src-86fb2d93f4ba2ea30dc3e9675795788558ac2207.tar.gz |
`cache' couldn't co-exist with `compat'.
Submitted by: "Michael Bushkov" <bushman__at__rsu.ru>
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/nsparser.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/net/nsparser.y b/lib/libc/net/nsparser.y index 4806dea..1f0fff1 100644 --- a/lib/libc/net/nsparser.y +++ b/lib/libc/net/nsparser.y @@ -157,10 +157,11 @@ _nsaddsrctomap(elem) lineno = _nsyylineno - (*_nsyytext == '\n' ? 1 : 0); if (curdbt.srclistsize > 0) { - if ((strcasecmp(elem, NSSRC_COMPAT) == 0) || + if (((strcasecmp(elem, NSSRC_COMPAT) == 0) && + (strcasecmp(curdbt.srclist[0].name, NSSRC_CACHE) != 0)) || (strcasecmp(curdbt.srclist[0].name, NSSRC_COMPAT) == 0)) { syslog(LOG_ERR, - "NSSWITCH(nsparser): %s line %d: 'compat' used with other sources", + "NSSWITCH(nsparser): %s line %d: 'compat' used with sources, other than 'cache'", _PATH_NS_CONF, lineno); return; } |