diff options
author | Roger Leigh <rleigh@debian.org> | 2009-05-04 00:39:01 +0100 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2009-05-04 00:53:01 +0100 |
commit | f734a54a242df8d88621412d38aa37f88394072f (patch) | |
tree | 29e4491caaa1dc0e9156b51e4d5a543ffc98aa03 /bin | |
parent | 633a2a5d99950489207d22b8ed07a02bd89f33e8 (diff) | |
download | schroot-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.cc | 2 |
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) { |