aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.cpp
diff options
context:
space:
mode:
authorGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2014-06-28 19:16:29 +0800
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2014-06-28 19:16:29 +0800
commit1cfd055f8266bce07d95d83522cf7b0c892a2e85 (patch)
tree399ab415978b723e746612a7792a47d8a4606a76 /env.cpp
parented5e5856844a68f0f5c6c0cc84ec791dec78c722 (diff)
env.cpp: allow all users to change $USER and $HOME
Diffstat (limited to 'env.cpp')
-rw-r--r--env.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/env.cpp b/env.cpp
index 43a34288..c5a790ea 100644
--- a/env.cpp
+++ b/env.cpp
@@ -485,16 +485,6 @@ void env_init(const struct config_paths_t *paths /* or NULL */)
}
/*
- HOME and USER should be writeable by root, since this can be a
- convenient way to install software.
- */
- if (getuid() != 0)
- {
- env_read_only.insert(L"HOME");
- env_read_only.insert(L"USER");
- }
-
- /*
Names of all dynamically calculated variables
*/
env_electric.insert(L"history");