From 40f1cf36e1e19f968ff5e2feb785af5973dbed08 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 23 Aug 2022 17:20:20 +0300 Subject: [PATCH] [#1719] neofs-cli: Save object with proper permissions `curl` uses 0644, for example. Signed-off-by: Evgenii Stratonikov --- cmd/neofs-cli/modules/object/get.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/neofs-cli/modules/object/get.go b/cmd/neofs-cli/modules/object/get.go index 6269e4cf4f..7a7529f8fd 100644 --- a/cmd/neofs-cli/modules/object/get.go +++ b/cmd/neofs-cli/modules/object/get.go @@ -53,7 +53,7 @@ func getObject(cmd *cobra.Command, _ []string) { if filename == "" { out = os.Stdout } else { - f, err := os.OpenFile(filename, os.O_CREATE|os.O_WRONLY, os.ModePerm) + f, err := os.OpenFile(filename, os.O_CREATE|os.O_WRONLY, 0644) if err != nil { common.ExitOnErr(cmd, "", fmt.Errorf("can't open file '%s': %w", filename, err)) }