Permalink
Browse files

Safely make the message directory if necessary

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
  • Loading branch information...
1 parent 5885a67 commit f2c23f6bad79272e749ecb9c32fbc5cb71ba5246 @jonludlam jonludlam committed Nov 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ocaml/xapi/xapi_message.ml
@@ -305,7 +305,7 @@ let write ~__context ~_ref ~message =
gen := Db_cache_types.Manifest.generation (Db_cache_types.Database.manifest db);
Db_cache_types.Database.increment db));
- Unixext.mkdir_safe message_dir 0o700;
+ Unixext.mkdir_rec message_dir 0o700;
let timestamp = ref (Date.to_float (message.API.message_timestamp)) in
if message_exists () then (Some (message_gen ()))

0 comments on commit f2c23f6

Please sign in to comment.