diff options
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index d4732f046..15cc27e01 100644 --- a/src/main.c +++ b/src/main.c @@ -268,6 +268,9 @@ void changeToUser(Options * options) { exit(EXIT_FAILURE); } + if(userpwd->pw_dir) { + setenv("HOME", userpwd->pw_dir, 1); + } } } |