glib r7121 - branches/glib-2-16/gio



Author: matthiasc
Date: Tue Jul  1 02:49:59 2008
New Revision: 7121
URL: http://svn.gnome.org/viewvc/glib?rev=7121&view=rev

Log:
2008-06-10  Matthias Clasen <mclasen redhat com>

        Bug 537392 â Additional colon in xattr name

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



Modified:
   branches/glib-2-16/gio/ChangeLog
   branches/glib-2-16/gio/glocalfileinfo.c

Modified: branches/glib-2-16/gio/glocalfileinfo.c
==============================================================================
--- branches/glib-2-16/gio/glocalfileinfo.c	(original)
+++ branches/glib-2-16/gio/glocalfileinfo.c	Tue Jul  1 02:49:59 2008
@@ -726,13 +726,13 @@
 
   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;
     }
   



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]