From: divverent Date: Sat, 7 Feb 2015 21:14:49 +0000 (+0000) Subject: Fix userdir detection on Unix systems. X-Git-Tag: xonotic-v0.8.1~29^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=36c53ff9e9582448949b2b40a6065aa15afc262c;p=xonotic%2Fdarkplaces.git Fix userdir detection on Unix systems. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12154 d7cf8633-e32d-0410-b094-e92efae38249 --- 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) {