From 2b21ab11646cb399c1a8fc5e313cfb839251422f Mon Sep 17 00:00:00 2001 From: Eukara Date: Mon, 14 Sep 2020 16:32:29 +0000 Subject: [PATCH] basedir on UNIX should not be "" as the fallback. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5761 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sys_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/sys_linux.c b/engine/client/sys_linux.c index 44c9e4ef..c4851921 100644 --- a/engine/client/sys_linux.c +++ b/engine/client/sys_linux.c @@ -1190,7 +1190,7 @@ int main (int c, const char **v) } } #else - parms.basedir = ""; //play it safe when realpath is too awkward to use. don't depend upon "./" working, and hope that the user uses -basedir or simply doesn't care about path prints (hopefully its only windows libraries that change the working dir without the program's permission). + parms.basedir = "./"; #endif memset(bindir, 0, sizeof(bindir)); //readlink does NOT null terminate, apparently.