]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Make sure UID is always set
authorAlexander Barton <alex@barton.de>
Sat, 5 Sep 2009 12:15:07 +0000 (14:15 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 5 Sep 2009 12:15:07 +0000 (14:15 +0200)
sys/profile

index 0078f575eeed104b06d8dca5706cb7df146e30e7..08307cb9643ac36ddcdbd2528f805764f670daaf 100644 (file)
@@ -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" ] \