]> err.no Git - systemd/commitdiff
main: don't unset HOME/TERM when run in session mode
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Oct 2010 00:32:02 +0000 (02:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Oct 2010 00:32:02 +0000 (02:32 +0200)
TODO
src/main.c

diff --git a/TODO b/TODO
index 9a7ee43deaee1261e16c5b3b97d11af33c2d1f9c..938ee49abaa504d881f511a33c1c0079159f817f 100644 (file)
--- a/TODO
+++ b/TODO
@@ -82,6 +82,8 @@
 
 * make sure swap.target doesn't pull in partitions multiple times
 
+* make description of .swap files nicer: resolve /dev/by-uuid/ symlink
+
 External:
 
 * patch kernel to add /proc/swaps change notifications
index 9a51a9187ffe03a2c1b5c01d6b96a6a671180273..50325e1285debbc54eda008c95c2718d0d950fa0 100644 (file)
@@ -975,8 +975,10 @@ int main(int argc, char *argv[]) {
 
         /* Unset some environment variables passed in from the kernel
          * that don't really make sense for us. */
-        unsetenv("HOME");
-        unsetenv("TERM");
+        if (arg_running_as == MANAGER_SYSTEM) {
+                unsetenv("HOME");
+                unsetenv("TERM");
+        }
 
         /* Move out of the way, so that we won't block unmounts */
         assert_se(chdir("/")  == 0);