Don't treat the pipe symbol in capabilities as an alternate

record name indicator; this causes a spurious warning:

$ cat x
record:\
	:capability=|value:
$ cap_mkdb x
cap_mkdb: ignored duplicate: record

Spotted by:	dcs
This commit is contained in:
Ruslan Ermilov 2001-06-01 14:45:00 +00:00
parent 2c5958aa51
commit f66c1ecf8f

View File

@ -136,7 +136,7 @@ dounlink()
#define SHADOW (char)2
/*
* Db_build() builds the name and capabilty databases according to the
* Db_build() builds the name and capability databases according to the
* details above.
*/
void
@ -201,8 +201,10 @@ db_build(ifiles)
++reccnt;
/* If only one name, ignore the rest. */
if ((p = strchr(bp, '|')) == NULL)
*p = '\0';
if (strchr(bp, '|') == NULL)
continue;
*p = ':';
/* The rest of the names reference the entire name. */
((char *)(data.data))[0] = SHADOW;