Skip to content

Commit 990c948

Browse files
committed
fix: ensure config file has 600 permissions
1 parent 77c02ac commit 990c948

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ipfs-9-to-10/migration/config_conv.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ func convertFile(orig string, new string, enableQuic bool, convBootstrap convArr
3434
}
3535
defer out.Close()
3636

37+
// Make sure file has 600 permissions
38+
if err := out.Chmod(0600); err != nil {
39+
return err
40+
}
41+
3742
return convert(in, out, enableQuic, convBootstrap, convSwarm)
3843
}
3944

0 commit comments

Comments
 (0)