https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208965

            Bug ID: 208965
           Summary: extattr(2) doesn't allow attribute names of length
                    EXTATTR_MAXNAMELEN
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: freebsd-b...@freebsd.org
          Reporter: asom...@freebsd.org
                CC: freebsd-amd64@FreeBSD.org
                CC: freebsd-amd64@FreeBSD.org

extattr(2) claims that attribute names may be up to EXTATTR_MAXNAMELEN in
length.  However, in practice it only allows attribute names of up to
EXTATTR_MAXNAMELEN - 1.

[alans@alans-fbsd-head2 /tmp]$ touch foo
[alans@alans-fbsd-head2 /tmp]$ ATTRNAME=`jot -b X -s "" 255 0`
[alans@alans-fbsd-head2 /tmp]$ setextattr user $ATTRNAME myvalue foo
setextattr: foo: failed: File name too long

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
freebsd-amd64@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "freebsd-amd64-unsubscr...@freebsd.org"

Reply via email to