From 34177aec2ae09bf065f909bb1383cfe821b52b01 Mon Sep 17 00:00:00 2001 From: Brad King <brad.king@kitware.com> Date: Mon, 7 Jan 2013 10:18:10 -0500 Subject: [PATCH] SystemTools: Fix MakeDirectory after recent cleanup The parent commit removed a useless if condition but forgot to leave behind the behavior from either path. Add the missing assignment from the original else block. Change-Id: I810cce08eb295ff2ba8c2eeff7631178b49c6725 --- SystemTools.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/SystemTools.cxx b/SystemTools.cxx index 9925640..760e529 100644 --- a/SystemTools.cxx +++ b/SystemTools.cxx @@ -630,6 +630,7 @@ bool SystemTools::MakeDirectory(const char* path) Mkdir(topdir.c_str()); pos++; } + topdir = dir; if(Mkdir(topdir.c_str()) != 0) { // There is a bug in the Borland Run time library which makes MKDIR -- GitLab