1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02:00

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

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);
}