From 074d616d3eec8e10851a274fc88330fedcf92eb3 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/storage/fs/ocis/ocis.go b/pkg/storage/fs/ocis/ocis.go index 98deac1e8a..b9f0a1709b 100644 --- a/pkg/storage/fs/ocis/ocis.go +++ b/pkg/storage/fs/ocis/ocis.go @@ -205,6 +205,12 @@ func (fs *ocisfs) CreateHome(ctx context.Context) (err error) { return nil }) + // update the owner + u := user.ContextMustGetUser(ctx) + if err = h.writeMetadata(u.Id); err != nil { + return + } + if fs.o.TreeTimeAccounting { homePath := h.lu.toInternalPath(h.ID) // mark the home node as the end of propagation