$OpenBSD: patch-src_core_paths_paths-linux_cpp,v 1.1.1.1 2021/07/10 12:03:20 landry Exp $

Index: src/core/paths/paths-linux.cpp
--- src/core/paths/paths-linux.cpp.orig
+++ src/core/paths/paths-linux.cpp
@@ -34,7 +34,7 @@ static string getBaseDirectory () {
 		char *dir = getenv("HOME");
 		if (!dir){
 			lError() << "Unable to get $HOME directory, will use current directory instead as base directory.";
-			dir = get_current_dir_name();
+			dir = getcwd(NULL, 0);
 			base = dir;
 			free(dir);
 		}else{
