From a5bd26395ee3ca8b9d80f77b412dae550b36898d Mon Sep 17 00:00:00 2001 From: Lucas Messenger Date: Thu, 11 Mar 2021 11:50:59 -0500 Subject: [PATCH] hdfs: fix permissions for when directory is created --- backend/hdfs/object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/hdfs/object.go b/backend/hdfs/object.go index 3b99c21db..304b8b27a 100644 --- a/backend/hdfs/object.go +++ b/backend/hdfs/object.go @@ -109,7 +109,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op dirname := path.Dir(realpath) fs.Debugf(o.fs, "update [%s]", realpath) - err := o.fs.client.MkdirAll(dirname, 755) + err := o.fs.client.MkdirAll(dirname, 0755) if err != nil { return err }