From: David Sterba <dsterba@suse.cz>
To: Vladimir Panteleev <git@panteleev.md>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs-progs: mkfs: fix xattr enumeration
Date: Mon, 9 Sep 2019 19:35:14 +0200 [thread overview]
Message-ID: <20190909173514.GE2850@twin.jikos.cz> (raw)
In-Reply-To: <20190906095846.30592-1-git@vladimir.panteleev.md>
On Fri, Sep 06, 2019 at 09:58:46AM +0000, Vladimir Panteleev wrote:
> Use the return value of listxattr instead of tokenizing.
>
> The end of the extended attribute list is indicated by the return
> value, not an empty list item (two consecutive NULs). Using strtok
> in this way thus sometimes caused add_xattr_item to reuse stack data
> in xattr_list from the previous invocation, thus querying attributes
> that are not actually in the file's xattr list.
>
> Issue: #194
> Signed-off-by: Vladimir Panteleev <git@vladimir.panteleev.md>
Added to devel, thanks.
prev parent reply other threads:[~2019-09-09 17:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-06 9:58 [PATCH] btrfs-progs: mkfs: fix xattr enumeration Vladimir Panteleev
2019-09-09 11:22 ` Nikolay Borisov
2019-09-09 11:32 ` Vladimir Panteleev
2019-09-09 12:16 ` Nikolay Borisov
2019-09-09 17:35 ` David Sterba [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190909173514.GE2850@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=git@panteleev.md \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).