From e12152159ff19c78261274143d8b9056b76223f4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 10 Jun 2008 15:55:31 +0000 Subject: [PATCH] =?utf8?q?=20=20=20=20=20=20=20=20Bug=20537392=20=E2=80=93?= =?utf8?q?=20Additional=20colon=20in=20xattr=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * glocalfileinfo.c (set_xattr): Skip the second colon of the prefix, too. Reported by Alessandro Morandi svn path=/trunk/; revision=6990 --- gio/ChangeLog | 7 +++++++ gio/glocalfileinfo.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gio/ChangeLog b/gio/ChangeLog index 6739be4..8bf6de9 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,5 +1,12 @@ 2008-06-10 Matthias Clasen + ug 537392 – Additional colon in xattr name + + * glocalfileinfo.c (set_xattr): Skip the second colon of the prefix, + too. Reported by Alessandro Morandi + +2008-06-10 Matthias Clasen + Bug 536641 – Filesystem querying in gio does not list AFS and autofs file systems diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c index adbd2db..b691764 100644 --- a/gio/glocalfileinfo.c +++ b/gio/glocalfileinfo.c @@ -733,13 +733,13 @@ set_xattr (char *filename, if (g_str_has_prefix (escaped_attribute, "xattr::")) { - escaped_attribute += 6; + escaped_attribute += strlen ("xattr::"); is_user = TRUE; } else { g_warn_if_fail (g_str_has_prefix (escaped_attribute, "xattr-sys::")); - escaped_attribute += 10; + escaped_attribute += strlen ("xattr-sys::"); is_user = FALSE; } -- 2.7.4