]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: fix memory leak 2428/head
authorMichal Sekletar <msekleta@redhat.com>
Mon, 25 Jan 2016 11:06:38 +0000 (12:06 +0100)
committerMichal Sekletar <msekleta@redhat.com>
Mon, 25 Jan 2016 11:06:38 +0000 (12:06 +0100)
src/nspawn/nspawn.c

index d619206dd6ef2d5088c5313125a8a1afb192f642..b183e3aecc74661e76d780bf08f80fef90927532 100644 (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;