projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
118dccc
)
test-execute: unset $HOME before testing
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Fri, 1 Feb 2019 11:49:26 +0000
(12:49 +0100)
committer
Lennart 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
patch
|
blob
|
history
diff --git
a/src/test/test-execute.c
b/src/test/test-execute.c
index 4c240fffdae1060a2df68b5f17c1d2844ca267bd..eb8f7c4effc9bf0f42f768c280e9944d939bc132 100644
(file)
--- a/
src/test/test-execute.c
+++ b/
src/test/test-execute.c
@@
-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();