From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Kerrisk (man-pages)" Subject: Re: [PATCH 1/1] listxattr.2: provide example code Date: Mon, 09 Feb 2015 10:42:15 +0100 Message-ID: <54D880F7.2030408@gmail.com> References: <1423412528-11512-1-git-send-email-xypron.glpk@gmx.de>, <54D872EE.8070000@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Heinrich Schuchardt Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Alexander Viro List-Id: linux-man@vger.kernel.org Hi Heinrich, On 02/09/2015 10:18 AM, Heinrich Schuchardt wrote: > Hello Michael, > > listxattr is implemented individually by the different filesystems. > > Tmpfs delivered a double zero in my tests. The length included this double zero. It's not so obvious to me where this could be happening. Looking at fs/xattr.c::simple_xattr_list() I don't see a second '\0' being added. (I haven't built a kernel with TMPFS_XATTR in order to test the behavior.) Cheers Michael -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html