summaryrefslogtreecommitdiffhomepage
path: root/app/lib/rpc-file-security.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/rpc-file-security.js')
-rw-r--r--app/lib/rpc-file-security.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/rpc-file-security.js b/app/lib/rpc-file-security.js
index da777d9b78..22dedb00be 100644
--- a/app/lib/rpc-file-security.js
+++ b/app/lib/rpc-file-security.js
@@ -24,6 +24,7 @@ function isOwnedAndOnlyWritableByRoot(path: string): boolean {
}
function isOwnedByLocalSystem(path: string): boolean {
+ // $FlowFixMe: this module is only available on Windows
const winsec = require('windows-security');
const ownerSid = winsec.getFileOwnerSid(path, null);
const isWellKnownSid = winsec.isWellKnownSid(ownerSid, winsec.WellKnownSid.LocalSystemSid);