diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2014-06-28 19:16:29 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2014-06-28 19:16:29 +0800 |
commit | 1cfd055f8266bce07d95d83522cf7b0c892a2e85 (patch) | |
tree | 399ab415978b723e746612a7792a47d8a4606a76 /env.cpp | |
parent | ed5e5856844a68f0f5c6c0cc84ec791dec78c722 (diff) |
env.cpp: allow all users to change $USER and $HOME
Closes 1425 (https://github.com/fish-shell/fish-shell/issues/1425)
Diffstat (limited to 'env.cpp')
-rw-r--r-- | env.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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"); |