From a7de24661c55a026dd208c8a62c50d6682d39859 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 14 Mar 2026 17:06:34 -0400 Subject: authfs: implement Rwalk, Rcreate --- back/cmd/authfs/sessdir.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'back/cmd/authfs/sessdir.go') diff --git a/back/cmd/authfs/sessdir.go b/back/cmd/authfs/sessdir.go index 22d8202..dbfb477 100644 --- a/back/cmd/authfs/sessdir.go +++ b/back/cmd/authfs/sessdir.go @@ -40,7 +40,14 @@ func (dir *SessionsDir) Get(id auth.SessId) (*Session, bool) { dir.mu.Lock() defer dir.mu.Unlock() sess, ok := dir.sessions[id] - return sess, ok + if !ok { + return nil, false + } + if !sess.IsActive() { + delete(dir.sessions, id) + return nil, false + } + return sess, true } // Owner returns the owner of the given session if it exists, or false if it doesn't. -- cgit v1.2.3