Skip to content

Commit

Permalink
Write 0600 permissions when editing root config
Browse files Browse the repository at this point in the history
  • Loading branch information
macmv committed Dec 7, 2023
1 parent 9ff0cbf commit dd24e59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/config/root-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export class RootConfig {
const config = this.toIni();

const encoded = ini.encode(config);
fs.writeFileSync(path, encoded);
fs.writeFileSync(path, encoded, {
mode: 0o600,
});
}

toIni() {
Expand Down

0 comments on commit dd24e59

Please sign in to comment.