From 36c53ff9e9582448949b2b40a6065aa15afc262c Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 7 Feb 2015 21:14:49 +0000 Subject: [PATCH] Fix userdir detection on Unix systems. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12154 d7cf8633-e32d-0410-b094-e92efae38249 --- fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs.c b/fs.c index c7cc7681..0941916b 100644 --- a/fs.c +++ b/fs.c @@ -1934,7 +1934,7 @@ static int FS_ChooseUserDir(userdirmode_t userdirmode, char *userdir, size_t use if(access(va(vabuf, sizeof(vabuf), "%s%s/", userdir, gamedirname1), W_OK | X_OK) >= 0) fd = 1; else - fd = 0; + fd = -1; #endif if(fd >= 0) { -- 2.39.2