commit 240a79d729ba5dcca5ebe3dc4a853bfb68fcd348 Author: Kathy Brade brade@pearlcrescent.com Date: Tue Apr 29 13:31:49 2014 -0400
Correctly handle startup paths that contain dot. --- src/components/tl-process.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/components/tl-process.js b/src/components/tl-process.js index d927b06..2efea99 100644 --- a/src/components/tl-process.js +++ b/src/components/tl-process.js @@ -655,8 +655,10 @@ TorProcessService.prototype = .getService(Ci.nsIProperties).get("CurProcD", Ci.nsIFile); while (tbbBrowserDepth > 0) { + var didRemove = (topDir.leafName != "."); topDir = topDir.parent; - tbbBrowserDepth--; + if (didRemove) + tbbBrowserDepth--; } }
tbb-commits@lists.torproject.org