Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
Chmod exported file permissions (#269)
Browse files Browse the repository at this point in the history
* Save all files as current user read-write only

* Save all files as current user read-write only
  • Loading branch information
MGibson1 committed Feb 10, 2021
1 parent d376927 commit 380b28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/electron/services/electronPlatformUtils.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?
});
}
Expand Down

0 comments on commit 380b28d

Please sign in to comment.