Limit export read to current user (#230)

This commit is contained in:
Matt Gibson 2021-02-10 10:47:59 -06:00 committed by GitHub
parent 5a8de9be49
commit 0a34bdb8cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ export class CliUtils {
}
return new Promise<string>((resolve, reject) => {
fs.writeFile(p, data, 'utf8', err => {
fs.writeFile(p, data, { encoding: 'utf8', mode: 0o600 }, err => {
if (err != null) {
reject('Cannot save file to ' + p);
}