After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 769442 - xattr add possibility to remove an extended attribute
xattr add possibility to remove an extended attribute
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
: 720506 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-08-02 16:35 UTC by Michele Dionisio
Modified: 2018-05-24 19:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to support remove xattr (2.13 KB, patch)
2016-08-02 16:35 UTC, Michele Dionisio
none Details | Review

Description Michele Dionisio 2016-08-02 16:35:50 UTC
Created attachment 332581 [details] [review]
patch to support remove xattr

using g_file_set_attribute it is possible to set/replace an extended attribute (xattr) implemented in glocalfileinfo.c.

there is no method in any interface to remove an attribute so I have extended 
g_file_set_attribute
that now accept only type G_FILE_ATTRIBUTE_TYPE_STRING 
to support also G_FILE_ATTRIBUTE_TYPE_INVALID and in that case remove the extended attribute

I have test the patch on linux only.
Comment 1 Philip Withnall 2017-10-05 12:54:47 UTC
*** Bug 720506 has been marked as a duplicate of this bug. ***
Comment 2 GNOME Infrastructure Team 2018-05-24 19:01:15 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1187.