1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

test-execute: unset $HOME before testing

Otherwise, test for %h specifier may fail.

Fixes #11609.
This commit is contained in:
Yu Watanabe 2019-02-01 12:49:26 +01:00 committed by Lennart Poettering
parent 118dccc948
commit 3285320786

View File

@ -770,6 +770,7 @@ int main(int argc, char *argv[]) {
(void) unsetenv("USER");
(void) unsetenv("LOGNAME");
(void) unsetenv("SHELL");
(void) unsetenv("HOME");
can_unshare = have_namespaces();