Bug 537392 – Additional colon in xattr name
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 10 Jun 2008 15:55:31 +0000 (15:55 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 10 Jun 2008 15:55:31 +0000 (15:55 +0000)
        * glocalfileinfo.c (set_xattr): Skip the second colon of the prefix,
        too. Reported by  Alessandro Morandi

svn path=/trunk/; revision=6990

gio/ChangeLog
gio/glocalfileinfo.c

index 6739be476390bf506c0780b220f3429afe84c25b..8bf6de99bd31e23705d96fc5516fcc9f55abc538 100644 (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>
 
        Bug 536641 – Filesystem querying in gio does not list AFS and autofs
index adbd2db9a8748acb1680b1ebcd75a69d19187c6e..b691764a868f96c64153cd46707cce6e8193a0ac 100644 (file)
@@ -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;
     }