From 9a7ca1576c1337520de0edf5613ae8c3abc11ddc Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Wed, 19 Aug 2020 15:06:58 +0200 Subject: [PATCH] Set the initial directory to the current directory Without this patch, the user has to navigate from the installation directory, which (for example in NixOS) could entail loading big directory listings, which make the program crash. --- sources/Adapters/DEB/System/DEBSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Adapters/DEB/System/DEBSystem.cpp b/sources/Adapters/DEB/System/DEBSystem.cpp index 6e866933..65d2cdde 100644 --- a/sources/Adapters/DEB/System/DEBSystem.cpp +++ b/sources/Adapters/DEB/System/DEBSystem.cpp @@ -54,7 +54,7 @@ void DEBSystem::Boot(int argc,char **argv) { } Path::SetAlias("bin",dirname(buff)) ; - Path::SetAlias("root","bin:..") ; + Path::SetAlias("root",".") ; #ifdef _DEBUG Trace::GetInstance()->SetLogger(*(new StdOutLogger()));