]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-execute: unset $HOME before testing
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 1 Feb 2019 11:49:26 +0000 (12:49 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Feb 2019 17:43:14 +0000 (18:43 +0100)
Otherwise, test for %h specifier may fail.

Fixes #11609.

src/test/test-execute.c

index 4c240fffdae1060a2df68b5f17c1d2844ca267bd..eb8f7c4effc9bf0f42f768c280e9944d939bc132 100644 (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();