Commit d16606f6 authored by Georg Koppen's avatar Georg Koppen
Browse files

fixup! Bug 14272: Make Tor Launcher work with Unix Domain Socket option

Permissions for the Tor data directory are too permissive for control
sockets. We adapt them (and those for creating files) to the ones used
for Linux bundles by default. This fixes: #20076 and #20075 as FileUtils
is not needed anymore (and hence can't be missing in tl-utils.jsm).
parent 5a5e7fbc
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -16,8 +16,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "TorLauncherUtil",
                          "resource://torlauncher/modules/tl-util.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "TorLauncherLogger",
                          "resource://torlauncher/modules/tl-logger.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "FileUtils",
                                  "resource://gre/modules/FileUtils.jsm");

function TorProcessService()
{
+2 −2
Original line number Diff line number Diff line
@@ -493,9 +493,9 @@ let TorLauncherUtil = // Public
        try
        {
          if ("tordatadir" == aTorFileType)
            f.create(f.DIRECTORY_TYPE, FileUtils.PERMS_DIRECTORY);
            f.create(f.DIRECTORY_TYPE, 0700);
          else
            f.create(f.NORMAL_FILE_TYPE, FileUtils.PERMS_FILE);
            f.create(f.NORMAL_FILE_TYPE, 0600);
        }
        catch (e)
        {