Date: Sat, 06 Dec 2014 16:40:00 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-doc@FreeBSD.org Subject: [Bug 195749] New: FreeBSD 10.1 cap_rights_limit wrong example of usage Message-ID: <bug-195749-9@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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: freebsd-doc@FreeBSD.org Reporter: logan@elandsys.com 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195749-9>