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 530086 - Infinite loop with g_file_get_parent for root dummy files
Infinite loop with g_file_get_parent for root dummy files
Status: RESOLVED DUPLICATE of bug 528600
Product: glib
Classification: Platform
Component: gio
2.12.x
Other All
: Normal normal
: ---
Assigned To: Christian Neumair
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-04-26 16:23 UTC by Christian Neumair
Modified: 2008-04-27 20:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (481 bytes, patch)
2008-04-26 16:24 UTC, Christian Neumair
none Details | Review

Description Christian Neumair 2008-04-26 16:23:19 UTC
Root dummy files (i.e. with path "/") do not return NULL, but themself. This breaks code like

while (file = get_parent (file)) {
  ...
}
Comment 1 Christian Neumair 2008-04-26 16:24:15 UTC
Created attachment 109955 [details] [review]
Proposed patch
Comment 2 A. Walton 2008-04-27 20:24:23 UTC
This is a dupe of bug 528600, however this patch is likely valid too, and is simpler. My fix was just copied from GVFS (http://bugzilla.gnome.org/attachment.cgi?id=109496&action=view).

So I'm closing this as a dupe, but we should move this patch over to that bug too. 

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