Limit export read to current user (#230)
This commit is contained in:
parent
5a8de9be49
commit
0a34bdb8cf
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue