Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2016 22:21:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 208965] extattr(2) doesn't allow attribute names of length EXTATTR_MAXNAMELEN
Message-ID:  <bug-208965-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208965

            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-bugs@FreeBSD.org
          Reporter: asomers@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=3D`jot -b X -s "" 255 0`
[alans@alans-fbsd-head2 /tmp]$ setextattr user $ATTRNAME myvalue foo
setextattr: foo: failed: File name too long

--=20
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-208965-8>