Skip to content

Commit 3fa4ff0

Browse files
authored
fix: ensure capabilities are separated by a space (#28)
1 parent c09ef0f commit 3fa4ff0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cap.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@ impl TestResult for CapResult {
8383
(CAP_SYSLOG, "CAP_SYSLOG"),
8484
]);
8585

86+
let mut sep = "";
8687
for k in cap_names.keys() {
8788
if self.flags & k == *k {
88-
result += format!(" {}", cap_names[k]).trim();
89+
result += &format!("{}{}", sep, cap_names[k]);
90+
sep = " ";
8991
}
9092
}
9193

0 commit comments

Comments
 (0)