]> code.ossystems Code Review - openembedded-core.git/commitdiff
weston-init: Fix WESTON_USER typo
authorBreno Leitao <leitao@debian.org>
Mon, 13 May 2019 14:26:52 +0000 (15:26 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 13 May 2019 19:50:00 +0000 (20:50 +0100)
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.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/wayland/weston-init/weston-start

index d19dbcbf7566201b1c6e94bbb8652dd53897b27d..ccc70934259c1c6a83805f4fd2ce165c50e326c9 100755 (executable)
@@ -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