Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Bug 537392 – Additional colon in xattr name
Browse files Browse the repository at this point in the history
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


svn path=/branches/glib-2-16/; revision=7121
  • Loading branch information
Matthias Clasen authored and Matthias Clasen committed Jul 1, 2008
1 parent 67012be commit cc76a63
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
17 changes: 13 additions & 4 deletions gio/ChangeLog
@@ -1,4 +1,13 @@
2008-06-30 Matthias Clasen <mclasen@redhat.com>
2008-06-30 Matthias Clasen <mclasen@redhat.com>

Backported from trunk:

Bug 537392 – Additional colon in xattr name

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

2008-06-30 Matthias Clasen <mclasen@redhat.com>

Backported from trunk:

Expand All @@ -8,7 +17,7 @@
* glocalfile.c (get_fs_type): Add afs and autofs.
Patch by Danny Baumann.

2008-06-30 Matthias Clasen <mclasen@redhat.com>
2008-06-30 Matthias Clasen <mclasen@redhat.com>

Backported from trunk:

Expand All @@ -17,13 +26,13 @@
* gdummyfile.c (g_dummy_file_get_parent): Return NULL if there
is no parent. (Owen Taylor, patch by Christian Neumair)

2008-06-30 Matthias Clasen <mclasen@redhat.com>
2008-06-30 Matthias Clasen <mclasen@redhat.com>

Backported from trunk:

* gfile.c (g_file_replace_contents): do not leak the output stream.

2008-06-30 Matthias Clasen <mclasen@redhat.com>
2008-06-30 Matthias Clasen <mclasen@redhat.com>

Backported from trunk:

Expand Down
4 changes: 2 additions & 2 deletions gio/glocalfileinfo.c
Expand Up @@ -726,13 +726,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;
}

Expand Down

0 comments on commit cc76a63

Please sign in to comment.