diff options
author | Johan Bilien <jobi@litl.com> | 2009-04-22 19:09:34 +0100 |
---|---|---|
committer | Johan Bilien <jobi@litl.com> | 2009-04-22 19:40:13 +0100 |
commit | d71e37892c90f19d086068656c314914ace3bc4f (patch) | |
tree | f5af0d6fc1fcfc9cd313f8a7f470ccc63d875cd5 | |
parent | c17d4dd117db554e501a18a41de53734f7f87003 (diff) | |
download | glib-d71e37892c90f19d086068656c314914ace3bc4f.tar.gz |
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.
-rw-r--r-- | gio/glocalfileinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c index b78b81687..e0d5b90d7 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); |