aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cap_mkdb
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-06-01 14:48:28 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-06-01 14:48:28 +0000
commita384620fd746c70b1cdc5e381c71fc29ead65829 (patch)
tree8efd79579ab4bee4fecdc5086b0737e11d39669c /usr.bin/cap_mkdb
parent9a7cd521ef9c0cb5573b8a6a6c2fcbc93df472cb (diff)
Notes
Diffstat (limited to 'usr.bin/cap_mkdb')
-rw-r--r--usr.bin/cap_mkdb/cap_mkdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/cap_mkdb/cap_mkdb.c b/usr.bin/cap_mkdb/cap_mkdb.c
index ccd5d3b11e90..44a29a1b5f20 100644
--- a/usr.bin/cap_mkdb/cap_mkdb.c
+++ b/usr.bin/cap_mkdb/cap_mkdb.c
@@ -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;