From 7d3b0739ff49c10a6703c7625ade42dfe72976fe Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 22 Jan 2016 17:32:12 +0200 Subject: Fix bug in mkdir_p() --- butl/filesystem.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/butl/filesystem.cxx b/butl/filesystem.cxx index 98b8d62..e2e9735 100644 --- a/butl/filesystem.cxx +++ b/butl/filesystem.cxx @@ -73,7 +73,7 @@ namespace butl { dir_path d (p.directory ()); - if (!dir_exists (d)) + if (!d.empty () && !dir_exists (d)) try_mkdir_p (d, m); } -- cgit v1.1