mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-18 02:41:15 +02:00
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) => {
|
return new Promise<string>((resolve, reject) => {
|
||||||
fs.writeFile(p, data, 'utf8', err => {
|
fs.writeFile(p, data, { encoding: 'utf8', mode: 0o600 }, err => {
|
||||||
if (err != null) {
|
if (err != null) {
|
||||||
reject('Cannot save file to ' + p);
|
reject('Cannot save file to ' + p);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user