π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Set permissions for new Auth exports
Neeraj Gupta98851b719256
diff --git a/cli/pkg/authenticator/decrypt.go b/cli/pkg/authenticator/decrypt.goindex ae414fd5c0..28f656dc04 100644--- a/cli/pkg/authenticator/decrypt.go+++ b/cli/pkg/authenticator/decrypt.go@@ -65,7 +65,7 @@ func DecryptExport(inputPath string, outputPath string, password string) error {return nil}- if err := os.WriteFile(outputFile, decryptedData, 0644); err != nil {+ if err := os.WriteFile(outputFile, decryptedData, 0600); err != nil {return fmt.Errorf("error writing file: %v", err)}diff --git a/cli/pkg/sync_authenticator.go b/cli/pkg/sync_authenticator.goindex d9c398de5b..8719ea4f79 100644--- a/cli/pkg/sync_authenticator.go+++ b/cli/pkg/sync_authenticator.go@@ -43,7 +43,7 @@ func (c *ClICtrl) writeAuthExport(ctx context.Context, account model.Account, dareturn fmt.Errorf("error creating backup file: %v", err)}}- file, err := os.Create(outputFile)+ file, err := os.OpenFile(outputFile, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0600)if err != nil {return fmt.Errorf("error creating output file: %v", err)}