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
1 changed files with 1 additions and 1 deletions

View File

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