mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
cache' couldn't co-exist with
compat'.
Submitted by: "Michael Bushkov" <bushman__at__rsu.ru>
This commit is contained in:
parent
b84d0f2f0b
commit
eb59e992e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158190
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user