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 720506 - No removexattr? Should set_attribute() with TYPE_INVALID remove it?
No removexattr? Should set_attribute() with TYPE_INVALID remove it?
Status: RESOLVED DUPLICATE of bug 769442
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-12-15 20:55 UTC by Marc-Andre Lureau
Modified: 2017-10-05 12:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marc-Andre Lureau 2013-12-15 20:55:56 UTC
Apparently, glib doesn't have a way to remove an xattr attribute.


g_file_info_set_attribute () doc says:
"To unset the attribute, use G_ATTRIBUTE_TYPE_INVALID for type."

It seems to me the attribute key should be removed too in this case (an empty value should use a non-invalid type)
Comment 1 Philip Withnall 2017-10-05 12:54:47 UTC

*** This bug has been marked as a duplicate of bug 769442 ***