projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9c33db
)
Fix translation from GIO's file attr to xattr attributes
author
Johan Bilien
<jobi@litl.com>
Wed, 22 Apr 2009 18:09:34 +0000
(19:09 +0100)
committer
Johan Bilien
<jobi@litl.com>
Wed, 22 Apr 2009 18:09:34 +0000
(19:09 +0100)
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.
gio/glocalfileinfo.c
patch
|
blob
|
history
diff --git
a/gio/glocalfileinfo.c
b/gio/glocalfileinfo.c
index
b78b816
..
e0d5b90
100644
(file)
--- 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);