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:
parent
d376927e5e
commit
380b28d66a
@ -120,7 +120,7 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
|
||||
showsTagField: false,
|
||||
}).then(ret => {
|
||||
if (ret.filePath != null) {
|
||||
fs.writeFile(ret.filePath, Buffer.from(blobData), err => {
|
||||
fs.writeFile(ret.filePath, Buffer.from(blobData), { mode: 0o600 }, err => {
|
||||
// error check?
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user