From 763de0671dd645de4db2e441b513093199887c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 7 Jan 2021 15:34:16 +0000 Subject: [PATCH] fix home creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- pkg/storage/fs/ocis/ocis.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/storage/fs/ocis/ocis.go b/pkg/storage/fs/ocis/ocis.go index 98deac1e8a3..24e411c3e91 100644 --- a/pkg/storage/fs/ocis/ocis.go +++ b/pkg/storage/fs/ocis/ocis.go @@ -205,6 +205,10 @@ func (fs *ocisfs) CreateHome(ctx context.Context) (err error) { return nil }) + // update the owner + u := user.ContextMustGetUser(ctx) + h.writeMetadata(u.Id) + if fs.o.TreeTimeAccounting { homePath := h.lu.toInternalPath(h.ID) // mark the home node as the end of propagation