[tor-commits] [tor-messenger-build/master] Fix levelsToRemove

arlo at torproject.org arlo at torproject.org
Mon Sep 5 22:53:48 UTC 2016


commit 70c38e1ec0fe72ac4231d2f65f21fd374d5c94a0
Author: Arlo Breault <arlolra at gmail.com>
Date:   Mon Sep 5 15:34:25 2016 -0700

    Fix levelsToRemove
    
     * It's relative to ExeFile, which should be the same as in TorBrowser.
---
 projects/instantbird/Mac-outside-app-data-bug-13252.mozpatch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/projects/instantbird/Mac-outside-app-data-bug-13252.mozpatch b/projects/instantbird/Mac-outside-app-data-bug-13252.mozpatch
index 4ddb4c0..4501ee7 100644
--- a/projects/instantbird/Mac-outside-app-data-bug-13252.mozpatch
+++ b/projects/instantbird/Mac-outside-app-data-bug-13252.mozpatch
@@ -947,9 +947,9 @@ index 0000000..2b0b100
 +  NS_ENSURE_ARG_POINTER(aFile);
 +  nsCOMPtr<nsIFile> appRootDir = aExeFile;
 +
-+  int levelsToRemove = 0; // Remove firefox (the executable file).
++  int levelsToRemove = 1; // Remove firefox (the executable file).
 +#if defined(XP_MACOSX)
-+  levelsToRemove += 1;   // On Mac OS, we must also remove Contents/MacOS.
++  levelsToRemove += 2;   // On Mac OS, we must also remove Contents/MacOS.
 +#endif
 +  while (appRootDir && (levelsToRemove > 0)) {
 +    // When crawling up the hierarchy, components named "." do not count.



More information about the tor-commits mailing list