https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195749
Bug ID: 195749
Summary: FreeBSD 10.1 cap_rights_limit wrong example of usage
Product: Documentation
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Documentation
Assignee: [email protected]
Reporter: [email protected]
Hi guys,
In the man page, the value is declared as rights, yet cap_rights_init, and
cap_rights_limit use setrights.
The following diff is the proposed fix:
--- cap_rights_limit.2.orig 2014-12-06 20:36:26.000000000 +0400
+++ cap_rights_limit.2 2014-12-06 20:36:48.000000000 +0400
@@ -97,8 +97,8 @@ if (fd < 0)
if (cap_enter() < 0)
err(1, "cap_enter() failed");
-cap_rights_init(&setrights, CAP_READ);
-if (cap_rights_limit(fd, &setrights) < 0)
+cap_rights_init(&rights, CAP_READ);
+if (cap_rights_limit(fd, &rights) < 0)
err(1, "cap_rights_limit() failed");
buf[0] = 'X';
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "[email protected]"