From 07e0d37aba5cd72ff2d53eda654a4d5466e38627 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 8 Nov 2019 00:17:47 +0300 Subject: Use path_name for `-` to stdin/stdout translation --- libbuild2/utility.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libbuild2/utility.cxx') diff --git a/libbuild2/utility.cxx b/libbuild2/utility.cxx index b7637f5..528b435 100644 --- a/libbuild2/utility.cxx +++ b/libbuild2/utility.cxx @@ -47,6 +47,8 @@ namespace std ostream& operator<< (ostream& os, const ::butl::path_name& pn) { + assert (!pn.empty ()); + return pn.name ? (os << *pn.name) : (os << *pn.path); } @@ -117,9 +119,6 @@ namespace build2 string diag_relative (const path& p, bool cur) { - if (p.string () == "-") // @@ PATH_NAME: remove - return ""; - const path& b (*relative_base); if (p.absolute ()) -- cgit v1.1