GNOME Bugzilla – Bug 572681
Drag and drop ".." from folders pane causes copying loop
Last modified: 2009-09-23 12:51:46 UTC
Please describe the problem: Hello, a Debian user reported [1] a bug against gthumb. Dragging ".." from the folders pane to the thumbnail viewer causes an infinite loop, until it reaches filesystem's limits. I.e. if you are in /tmp/foo/ and drag .., then it creates /tmp/foo/tmp/foo/tmp/foo/... I managed to make a patch, will attach to this report. It's a simple patch, maybe the problem can be handled better. [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420195 Steps to reproduce: 1. Go to a folder, with the folders pane open 2. Drag ".." into the thumbnail viewer Actual results: ".." gets infinitely copied into $CWD Expected results: Nothing. Or, showing the contents of ".." in the thumbnail viewer, and going up in the folders pane. Does this happen every time? Yes. Other information: Reported on 2.10.8, also found in 2.10.10, and in a 2.11.0 snapshot (rev2319) I made for Debian/experimental.
Created attachment 129219 [details] [review] Fix infinite loop when dragging ".." Applied to the Debian 2.10.10 package. Will soon apply to the 2.10.8 package shipped with the just-released Lenny (5.0.0)
Marking as obsolete, due to the rewrite in ext branch (http://live.gnome.org/gthumb).