From: Marcus Granado Date: Tue, 12 Oct 2010 09:57:43 +0000 (+0100) Subject: CA-41811: xapi must create /var/patch when downloading patches from master X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8fd5b05b8bac6127062a9f1d9cb442400b55a92e;p=xcp%2Fxen-api.git CA-41811: xapi must create /var/patch when downloading patches from master Signed-off-by: Marcus Granado --- diff --git a/ocaml/xapi/xapi_pool_patch.ml b/ocaml/xapi/xapi_pool_patch.ml index 4dba0d7a..7ffb6892 100644 --- a/ocaml/xapi/xapi_pool_patch.ml +++ b/ocaml/xapi/xapi_pool_patch.ml @@ -448,6 +448,7 @@ let get_patch_to_local ~__context ~self = [ Printf.sprintf "GET %s HTTP/1.1" request; ] in let length = Some (Db.Pool_patch.get_size ~__context ~self) in let f content_length tast_opt s = + let _ = Unixext.mkdir_safe patch_dir 0o755 in read_in_and_check_patch length s path in let master_address = Pool_role.get_master_address () in