From 4780450e41217f65e6d59d9ff67b36aae8d03897 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 17 Oct 2016 13:08:44 +0200 Subject: [PATCH] Fixed: Escape path (it can contains spaces) --- code/ryzom/client/src/login_patch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/client/src/login_patch.cpp b/code/ryzom/client/src/login_patch.cpp index 4489f11bb..4c665da3d 100644 --- a/code/ryzom/client/src/login_patch.cpp +++ b/code/ryzom/client/src/login_patch.cpp @@ -933,7 +933,7 @@ void CPatchManager::createBatchFile(CProductDescriptionForClient &descFile, bool if (wantRyzomRestart) { // wait until client not in memory anymore - contentSuffix += toString("until ! pgrep %s > /dev/null; do sleep 1; done\n", CFile::getFilename(RyzomFilename).c_str()); + contentSuffix += toString("until ! pgrep \"%s\" > /dev/null; do sleep 1; done\n", CFile::getFilename(RyzomFilename).c_str()); } // launch upgrade script if present (it'll execute additional steps like moving or deleting files)