[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-launcher/master] Correctly handle startup paths that contain dot.



commit 240a79d729ba5dcca5ebe3dc4a853bfb68fcd348
Author: Kathy Brade <brade@xxxxxxxxxxxxxxxxx>
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--;
             }
           }
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits