aboutsummaryrefslogtreecommitdiff
path: root/butl/process.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-25 15:25:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-25 15:25:50 +0200
commitcdc67ad0cf1e102568396b0649dd18ea1223d785 (patch)
treeeecdcef69fdb95eab4eed9ef9943fc54e8a8d530 /butl/process.cxx
parent110de28be0b09ed8d2b445769a59ea66c07c83d7 (diff)
Ignore empty cwd in process
Diffstat (limited to 'butl/process.cxx')
-rw-r--r--butl/process.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/butl/process.cxx b/butl/process.cxx
index 3556fd9..66a831e 100644
--- a/butl/process.cxx
+++ b/butl/process.cxx
@@ -76,7 +76,7 @@ namespace butl
// Change current working directory if requested.
//
- if (cwd != nullptr && chdir (cwd) != 0)
+ if (cwd != nullptr && *cwd != '\0' && chdir (cwd) != 0)
throw process_error (errno, true);
if (execvp (args[0], const_cast<char**> (&args[0])) == -1)