Merge pull request #2428 from msekletar/nspawn-alloca-fix

nspawn: fix memory leak
This commit is contained in:
Lennart Poettering 2016-01-25 13:46:23 +01:00
commit 147d3751d8

View file

@ -1027,7 +1027,7 @@ static int setup_timezone(const char *dest) {
}
check = strjoina("/usr/share/zoneinfo/", z);
check = prefix_root(dest, check);
check = prefix_roota(dest, check);
if (laccess(check, F_OK) < 0) {
log_warning("Timezone %s does not exist in container, not updating container timezone.", z);
return 0;