mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
weston-init: Don't change XDG_RUNTIME_DIR if it already exists
In the case that XDG_RUNTIME_DIR already exists, the mkdir --parents at least does nothing, but the chmod could overwrite the desired file mode settings. (From OE-Core rev: 9f539d03138817b7b740ed1895000704e4a475d0) Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7950a90bcc
commit
a6da506483
@@ -65,8 +65,10 @@ fi
|
|||||||
|
|
||||||
if test -z "$XDG_RUNTIME_DIR"; then
|
if test -z "$XDG_RUNTIME_DIR"; then
|
||||||
export XDG_RUNTIME_DIR=/run/user/`id -u`
|
export XDG_RUNTIME_DIR=/run/user/`id -u`
|
||||||
mkdir --parents $XDG_RUNTIME_DIR
|
if ! test -d "$XDG_RUNTIME_DIR"; then
|
||||||
chmod 0700 $XDG_RUNTIME_DIR
|
mkdir --parents $XDG_RUNTIME_DIR
|
||||||
|
chmod 0700 $XDG_RUNTIME_DIR
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec openvt $openvt_args -- $launcher $weston_args --log=@LOCALSTATEDIR@/log/weston.log
|
exec openvt $openvt_args -- $launcher $weston_args --log=@LOCALSTATEDIR@/log/weston.log
|
||||||
|
|||||||
Reference in New Issue
Block a user