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:
parent
2c5958aa51
commit
f66c1ecf8f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77586
@ -136,7 +136,7 @@ dounlink()
|
|||||||
#define SHADOW (char)2
|
#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.
|
* details above.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
@ -201,8 +201,10 @@ db_build(ifiles)
|
|||||||
++reccnt;
|
++reccnt;
|
||||||
|
|
||||||
/* If only one name, ignore the rest. */
|
/* If only one name, ignore the rest. */
|
||||||
if ((p = strchr(bp, '|')) == NULL)
|
*p = '\0';
|
||||||
|
if (strchr(bp, '|') == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
*p = ':';
|
||||||
|
|
||||||
/* The rest of the names reference the entire name. */
|
/* The rest of the names reference the entire name. */
|
||||||
((char *)(data.data))[0] = SHADOW;
|
((char *)(data.data))[0] = SHADOW;
|
||||||
|
Loading…
Reference in New Issue
Block a user