From 1cfd055f8266bce07d95d83522cf7b0c892a2e85 Mon Sep 17 00:00:00 2001 From: David Adam Date: Sat, 28 Jun 2014 19:16:29 +0800 Subject: [PATCH] env.cpp: allow all users to change $USER and $HOME Closes 1425 (https://github.com/fish-shell/fish-shell/issues/1425) --- env.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/env.cpp b/env.cpp index 43a342887..c5a790eaf 100644 --- a/env.cpp +++ b/env.cpp @@ -484,16 +484,6 @@ void env_init(const struct config_paths_t *paths /* or NULL */) env_read_only.insert(ro_keys[i]); } - /* - 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 */