1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Description: Set HOME in initial_keepenv_table
Set HOME in initial_keepenv_table; without this, $HOME will never be
preserved unless added to keep_env. There's appropriate logic to handle
resetting the home for -H and -i options, so this is the only part that's
missing.
Author: Steve Langasek <steve.langasek@canonical.com>
Index: sudo/env.c
===================================================================
--- sudo.orig/env.c
+++ sudo/env.c
@@ -198,6 +198,7 @@
static const char *initial_keepenv_table[] = {
"COLORS",
"DISPLAY",
+ "HOME",
"HOSTNAME",
"KRB5CCNAME",
"LS_COLORS",
|