From 7f4943c43867c74e65066f2afdd2e79ad3ce073a Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Wed, 9 Sep 2026 04:32:56 +0000 Subject: [PATCH] fix(gstack-memorable): name an unwritable state directory when the lock cannot be created Co-Authored-By: Claude Fable 5.1 --- bin/gstack-memorable | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gstack-memorable b/bin/gstack-memorable index 23f7dbf60..31b1a1dfd 100755 --- a/bin/gstack-memorable +++ b/bin/gstack-memorable @@ -102,7 +102,7 @@ _lock_release() { LOCK_HELD=0 } _lock_acquire() { - mkdir -p "$STATE_DIR/locks" 2>/dev/null || { _err "cannot create $STATE_DIR/locks"; return 5; } + mkdir -p "$STATE_DIR/locks" 2>/dev/null || { _err "cannot create $STATE_DIR/locks (state directory not writable; nothing can be recorded there)"; return 5; } local tries=0 mtime now stale judged moved owner_pid while ! mkdir "$LOCK_DIR" 2>/dev/null; do tries=$((tries + 1))