summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 09a54149..5016f07d 100644
--- a/bin/schroot-mount/schroot-mount-main.cc
+++ b/bin/schroot-mount/schroot-mount-main.cc
@@ -103,7 +103,7 @@ main::action_mount ()
std::string directory(opts->mountpoint + entry.directory);
- if (!boost::filesystem::is_directory(directory))
+ if (!boost::filesystem::exists(directory))
{
sbuild::log_debug(sbuild::DEBUG_INFO)
<< boost::format("Creating '%1%' in '%2%'")