aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-07-07 20:03:00 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-07-14 22:06:49 +0300
commite6f4761d2ed82a51eac73621d73e5ba088034380 (patch)
tree9d93b6129eef9024251870b0b34f7452f77cdb10
parent307b2288e224aac58dd0e0b88db687f7ba5c2d39 (diff)
Fix crash when name is unspecified for --subdirectory
-rw-r--r--bdep/new.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index c76549c..d2a4229 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -639,7 +639,7 @@ namespace bdep
prj = move (pkg);
}
- if (!out.sub (prj))
+ if (!out.sub (prj) || out == prj)
fail << "source subdirectory " << out << " is not a subdirectory of "
<< "package directory " << prj;