From 6c5c1f890597543ad1c3eb7fb510584a46a61be1 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 5 Sep 2009 14:15:07 +0200 Subject: [PATCH] Make sure UID is always set --- sys/profile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/profile b/sys/profile index 0078f57..08307cb 100644 --- a/sys/profile +++ b/sys/profile @@ -9,6 +9,10 @@ PROFILEREAD="true" export PROFILEREAD +# Make sure UID is set +[ -n "$UID" ] || UID=`id -u` +export UID + # Set locale if it is not set or doesn't contain a dot; # but all system messages should still be in "native" ("C") language. [ "$LANG" = "${LANG#*.}" -a "$LANG" != "C" ] \ -- 2.39.2