1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

Chmod exported file permissions (#269)

* Save all files as current user read-write only

* Save all files as current user read-write only
This commit is contained in:
Matt Gibson 2021-02-10 10:47:55 -06:00 committed by GitHub
parent d376927e5e
commit 380b28d66a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,7 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
showsTagField: false, showsTagField: false,
}).then(ret => { }).then(ret => {
if (ret.filePath != null) { if (ret.filePath != null) {
fs.writeFile(ret.filePath, Buffer.from(blobData), err => { fs.writeFile(ret.filePath, Buffer.from(blobData), { mode: 0o600 }, err => {
// error check? // error check?
}); });
} }