Bug 537392 – Additional colon in xattr name

* glocalfileinfo.c (set_xattr): Skip the second colon of the prefix,
        too. Reported by  Alessandro Morandi


svn path=/trunk/; revision=6990
This commit is contained in:
Matthias Clasen 2008-06-10 15:55:31 +00:00
parent 972a981f30
commit e12152159f
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-06-10 Matthias Clasen <mclasen@redhat.com>
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 <mclasen@redhat.com> 2008-06-10 Matthias Clasen <mclasen@redhat.com>
Bug 536641 Filesystem querying in gio does not list AFS and autofs Bug 536641 Filesystem querying in gio does not list AFS and autofs

View File

@ -733,13 +733,13 @@ set_xattr (char *filename,
if (g_str_has_prefix (escaped_attribute, "xattr::")) if (g_str_has_prefix (escaped_attribute, "xattr::"))
{ {
escaped_attribute += 6; escaped_attribute += strlen ("xattr::");
is_user = TRUE; is_user = TRUE;
} }
else else
{ {
g_warn_if_fail (g_str_has_prefix (escaped_attribute, "xattr-sys::")); g_warn_if_fail (g_str_has_prefix (escaped_attribute, "xattr-sys::"));
escaped_attribute += 10; escaped_attribute += strlen ("xattr-sys::");
is_user = FALSE; is_user = FALSE;
} }