GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit c5cf235c authored by Matthew Finkel's avatar Matthew Finkel
Browse files

Fix deprecated octal literals

See https://bugzilla.mozilla.org/show_bug.cgi?id=1263074
parent 9fa37a1f
......@@ -978,7 +978,7 @@ TorProcessService.prototype =
let stream = Cc["@mozilla.org/network/safe-file-output-stream;1"]
.createInstance(Ci.nsIFileOutputStream);
stream.init(aFile, 0x02 | 0x08 | 0x20, /* WRONLY CREATE TRUNCATE */
0600, 0);
0o600, 0);
stream.write(data, data.length);
stream.QueryInterface(Ci.nsISafeOutputStream).finish();
}
......
......@@ -658,9 +658,9 @@ let TorLauncherUtil = // Public
try
{
if ("tordatadir" == aTorFileType)
torFile.create(torFile.DIRECTORY_TYPE, 0700);
torFile.create(torFile.DIRECTORY_TYPE, 0o700);
else
torFile.create(torFile.NORMAL_FILE_TYPE, 0600);
torFile.create(torFile.NORMAL_FILE_TYPE, 0o600);
}
catch (e)
{
......@@ -883,7 +883,7 @@ let TLUtilInternal = // Private
let d = Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsIFile);
d.initWithPath(aBasePath);
d.append("Tor");
d.createUnique(Ci.nsIFile.DIRECTORY_TYPE, 0700);
d.createUnique(Ci.nsIFile.DIRECTORY_TYPE, 0o700);
return d;
}
catch (e)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment