From 8a33e99aeb116e33c0a06568765dad4b3edd619b Mon Sep 17 00:00:00 2001 From: Noah Zalev Date: Mon, 19 Apr 2021 12:57:27 -0400 Subject: [PATCH] Fixed log.txt permission bits --- meshcentral.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshcentral.js b/meshcentral.js index 61f63b5f..e3e2ffd1 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -2844,7 +2844,7 @@ function CreateMeshCentralServer(config, args) { const d = new Date(); if (obj.xxLogFile == null) { try { - obj.xxLogFile = obj.fs.openSync(obj.getConfigFilePath('log.txt'), 'a+', 666); + obj.xxLogFile = obj.fs.openSync(obj.getConfigFilePath('log.txt'), 'a+', 0o666); obj.fs.writeSync(obj.xxLogFile, '---- Log start at ' + new Date().toLocaleString() + ' ----\r\n'); obj.xxLogDateStr = d.toLocaleDateString(); } catch (ex) { }