Skip to contentSkip to conversation

weston-init: Fix WESTON_USER typo

PATCH New Breno Leitao 1 participant 1 message May 13, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 weston-init: Fix WESTON_USER typo

From: Breno Leitao <[email protected]>

Commit 837c786d600ba69('weston-init: Add support for non-root start') added a typo that uses WEST_USER instead of WESTON_USER variable when chwon'ing the XDG_RUNTIME_DIR directory. Since WEST_USER is not defined, it will chown :$WESTON_USER file, which will work, but that is not 100% correctly and should be fixed.

This patch basically fix the typo and now the file will be chown'ed to the WESTON_USER user.

---
 meta/recipes-graphics/wayland/weston-init/weston-start | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/wayland/weston-init/weston-start +1 -1
index d19dbcbf75..ccc7093425 100755
@@ -75,7 +75,7 @@ if test -z "$XDG_RUNTIME_DIR"; then
 	fi
 	if [ -n "$WESTON_USER" ]
 	then
-		chown $WEST_USER:$WESTON_USER $XDG_RUNTIME_DIR
+		chown $WESTON_USER:$WESTON_USER $XDG_RUNTIME_DIR
 	fi
 fi
 
Signature · 1 line
2.17.1