Package: sudo
Version: 1.7.4p4-1
Severity: normal
Tag: patch

sudo as of 1.7.4p4-1 now resets HOME when env_reset is set (the
default). [This means that HOME is set to the value of the target
user, instead of the value of the calling user.]

This means that anything which called sudo and expected HOME to stay
unless -H was passed now will be broken until HOME is added to
env_keep.

I suggest that HOME be added to env_keep by default; the attached
trivial patch does one implementation of this.


Don Armstrong

-- 
More than any other time in history, mankind faces a crossroads.
One path leads to despair and utter hopelessness.
The other, to total extinction.
Let us pray we have the wisdom to choose correctly.
 -- Woody Allen

http://www.donarmstrong.com              http://rzlab.ucr.edu
diff -Nru sudo-1.7.4p4/debian/changelog sudo-1.7.4p4/debian/changelog
--- sudo-1.7.4p4/debian/changelog	2010-09-08 16:30:31.000000000 -0400
+++ sudo-1.7.4p4/debian/changelog	2010-09-11 23:16:49.000000000 -0400
@@ -1,3 +1,9 @@
+sudo (1.7.4p4-3) unstable; urgency=low
+
+  * Return HOME to env_keep by default
+
+ -- Don Armstrong <d...@debian.org>  Sat, 11 Sep 2010 23:16:49 -0400
+
 sudo (1.7.4p4-2) unstable; urgency=low
 
   * add a NEWS item about change in $HOME handling that impacts programs
diff -Nru sudo-1.7.4p4/debian/patches/keep-env-home sudo-1.7.4p4/debian/patches/keep-env-home
--- sudo-1.7.4p4/debian/patches/keep-env-home	1969-12-31 19:00:00.000000000 -0500
+++ sudo-1.7.4p4/debian/patches/keep-env-home	2010-09-11 23:16:20.000000000 -0400
@@ -0,0 +1,12 @@
+Index: sudo-1.7.4p4/env.c
+===================================================================
+--- sudo-1.7.4p4.orig/env.c	2010-09-11 23:12:40.000000000 -0400
++++ sudo-1.7.4p4/env.c	2010-09-11 23:13:54.000000000 -0400
+@@ -201,6 +201,7 @@
+     "HOSTNAME",
+     "KRB5CCNAME",
+     "LS_COLORS",
++    "HOME",
+     "PATH",
+     "PS1",
+     "PS2",
diff -Nru sudo-1.7.4p4/debian/patches/series sudo-1.7.4p4/debian/patches/series
--- sudo-1.7.4p4/debian/patches/series	2010-09-08 16:30:31.000000000 -0400
+++ sudo-1.7.4p4/debian/patches/series	2010-09-11 23:12:32.000000000 -0400
@@ -1,3 +1,4 @@
 typo-in-classic-insults.diff
 env.c-safety.diff
 paths-in-samples.diff
+keep-env-home

Reply via email to