From 270a0c54b41756d5816dbc51ff7fc8ef15db7bdb Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Tue, 13 Jan 2015 08:22:03 +1100 Subject: [PATCH] Fix permissions on Aphlict log Summary: Currently, the Aphlict server created the log file (if it doesn't exist) but then immediately fails with "Unable to open logfile". It seems that we don't set the permissions correctly. Test Plan: Deleted log file and was able to start the Aphlict server. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11351 --- support/aphlict/server/lib/AphlictLog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/aphlict/server/lib/AphlictLog.js b/support/aphlict/server/lib/AphlictLog.js index 15c7dbc719..3c40979aa1 100644 --- a/support/aphlict/server/lib/AphlictLog.js +++ b/support/aphlict/server/lib/AphlictLog.js @@ -17,7 +17,7 @@ JX.install('AphlictLog', { var options = { flags: 'a', encoding: 'utf8', - mode: 066 + mode: 0664, }; var logfile = fs.createWriteStream(path, options);