[Bug 195749] New: FreeBSD 10.1 cap_rights_limit wrong example of usage
    bugzilla-noreply at freebsd.org 
    bugzilla-noreply at freebsd.org
       
    Sat Dec  6 16:40:00 UTC 2014
    
    
  
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 at FreeBSD.org
          Reporter: logan at 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.
    
    
More information about the freebsd-doc
mailing list