From bc907f3a59fa58c28c28ba41719a6f8559734d3b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 22 Aug 2014 15:05:45 +0200 Subject: [PATCH] base-files: xdg-runtime-dir: make sure that $UID has a proper value with a posix shell (dash). --- srcpkgs/base-files/files/xdg-runtime-dir.sh | 2 ++ srcpkgs/base-files/template | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/srcpkgs/base-files/files/xdg-runtime-dir.sh b/srcpkgs/base-files/files/xdg-runtime-dir.sh index 583a5e234f3..5f7328005f6 100644 --- a/srcpkgs/base-files/files/xdg-runtime-dir.sh +++ b/srcpkgs/base-files/files/xdg-runtime-dir.sh @@ -1,5 +1,7 @@ # Sets and creates XDG_RUNTIME_DIR. +${UID:-$(id -u)} + if test -z "${XDG_RUNTIME_DIR}"; then export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir if ! test -d "${XDG_RUNTIME_DIR}"; then diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template index 335721b8907..c6dabe98489 100644 --- a/srcpkgs/base-files/template +++ b/srcpkgs/base-files/template @@ -1,6 +1,6 @@ # Template file for 'base-files' pkgname=base-files -version=0.104 +version=0.106 revision=1 bootstrap=yes build_style="meta"