summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2009-05-04 00:39:01 +0100
committerRoger Leigh <rleigh@debian.org>2009-05-04 00:53:01 +0100
commitf734a54a242df8d88621412d38aa37f88394072f (patch)
tree29e4491caaa1dc0e9156b51e4d5a543ffc98aa03 /bin
parent633a2a5d99950489207d22b8ed07a02bd89f33e8 (diff)
downloadschroot-f734a54a242df8d88621412d38aa37f88394072f.tar.gz
[schroot-mount] Act like mkdir -p rather than mkdir creating mountpoints
This prevents failure when the path does not already exist.
Diffstat (limited to 'bin')
-rw-r--r--bin/schroot-mount/schroot-mount-main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/schroot-mount/schroot-mount-main.cc b/bin/schroot-mount/schroot-mount-main.cc
index 71e03291..3e7db9ab 100644
--- a/bin/schroot-mount/schroot-mount-main.cc
+++ b/bin/schroot-mount/schroot-mount-main.cc
@@ -117,7 +117,7 @@ main::action_mount ()
{
try
{
- boost::filesystem::create_directory(directory);
+ boost::filesystem::create_directories(directory);
}
catch (std::exception const& e)
{