From ed5a3ecf34589c3554156a0ea2834a7492da0a4e Mon Sep 17 00:00:00 2001
From: obarun <eric@obarun.org>
Date: Wed, 20 Mar 2019 10:34:11 +1100
Subject: [PATCH] fix crash at user enable process

---
 jwm/customizeChroot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jwm/customizeChroot b/jwm/customizeChroot
index ac26d0e..7115d6c 100755
--- a/jwm/customizeChroot
+++ b/jwm/customizeChroot
@@ -57,7 +57,7 @@ config(){
 	out_action "Create tree graphics for ${NEWUSER}, enables and makes it current"
 	su "${NEWUSER}" -c "66-tree -Ecn graphics"
 	# creation of the live/state/uid to avoid crash
-	mkdir -p 755 /run/66/state/$(id -u)
+	mkdir -p -m1777 /run/66/
 	out_action "Enable dbus-user and xdg-user-dirs on tree graphics"
 	su "${NEWUSER}" -c "66-enable -t graphics dbus-user xdg-user-dirs"
 }
-- 
GitLab