From: Johan Bilien Date: Wed, 22 Apr 2009 18:09:34 +0000 (+0100) Subject: Fix translation from GIO's file attr to xattr attributes X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=491a036d8480f4d710ef601a27a57b559b0a46d7;p=dana%2Fcg-glib.git Fix translation from GIO's file attr to xattr attributes Bug 579862 – requesting xattr::foo ends up calling getxattr(..., user.:foo,...) The patch makes sure we escape xattr::, not xattr:, before adding user. and calling getxattr. --- diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c index b78b8168..e0d5b90d 100644 --- a/gio/glocalfileinfo.c +++ b/gio/glocalfileinfo.c @@ -527,7 +527,7 @@ get_xattrs (const char *path, attr2 = strchr (attr, ':'); if (attr2) { - attr2++; /* Skip ':' */ + attr2 += 2; /* Skip '::' */ unescaped_attribute = hex_unescape_string (attr2, NULL, &free_unescaped_attribute); if (user) a = g_strconcat ("user.", unescaped_attribute, NULL);