commit 4feaed188124f94458aec2da05893196bc5767c4
Author: Yawning Angel <yawn...@schwanenlied.me>
Date:   Wed Nov 8 05:01:50 2017 +0000

    Bug 24171: Create the `Caches` directory properly.
---
 ChangeLog                                                     | 1 +
 src/cmd/sandboxed-tor-browser/internal/sandbox/application.go | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 1471ea2..92c0182 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
 Changes in version 0.0.16 - UNRELEASED:
+ * Bug 24171: Create the `Caches` directory properly.
 
 Changes in version 0.0.15 - 2017-10-30:
  * Bug 23915: 7.0.7 and later fails to work without 
`SECCOMP_FILTER_FLAG_TSYNC`.
diff --git a/src/cmd/sandboxed-tor-browser/internal/sandbox/application.go 
b/src/cmd/sandboxed-tor-browser/internal/sandbox/application.go
index d29df34..9d68516 100644
--- a/src/cmd/sandboxed-tor-browser/internal/sandbox/application.go
+++ b/src/cmd/sandboxed-tor-browser/internal/sandbox/application.go
@@ -102,12 +102,16 @@ func RunTorBrowser(cfg *config.Config, manif 
*config.Manifest, tor *tor.Tor) (pr
 
        browserHome := filepath.Join(h.homeDir, "sandboxed-tor-browser", 
"tor-browser", "Browser")
        realBrowserHome := filepath.Join(cfg.BundleInstallDir, "Browser")
+       realCachesDir := filepath.Join(realBrowserHome, cachesSubDir)
        realProfileDir := filepath.Join(realBrowserHome, profileSubDir)
        realDesktopDir := filepath.Join(realBrowserHome, "Desktop")
        realDownloadsDir := filepath.Join(realBrowserHome, "Downloads")
        realExtensionsDir := filepath.Join(realProfileDir, "extensions")
 
        // Ensure that the `Caches`, `Downloads` and `Desktop` mount points 
exist.
+       if err = os.MkdirAll(realCachesDir, DirMode); err != nil {
+               return
+       }
        if err = os.MkdirAll(realDesktopDir, DirMode); err != nil {
                return
        }

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

Reply via email to