7051 noticed today that in Delight's server log there are many occurences of
- Code: Select all
^7FS_Open("data/maps/.mapcfg", "rb", false): nasty filename rejected
^7FS_Open("maps/.mapcfg", "rb", false): nasty filename rejected
I think this happens cos the condition in fs.c in the engine code, line 1559, applies:
- Code: Select all
// all: forbid leading dot on any filename for any reason
if (strstr(path, "/."))
return 2; // attempt to go outside the game directory
It looks like these "/.mapcfg" names are coming from GotoNextMap im qcsrc/server/g_world.qc, line 1580ff:
- Code: Select all
// cvar "nextmap" always gets priority
if(TryFile(strcat("maps/", cvar_string("nextmap"), ".mapcfg")))
{
localcmd(strcat("exec \"maps/", cvar_string("nextmap"), ".mapcfg\"\n"));
return;
}
(Source is from 2007-01-23)
Maybe "nextmap" should be tested for content before trying to exec the mapconfig?
The "filename rejected" message doesn't occur when I change map with chmap or when I set "nextmap" to anything before time limit or frag limit is reached.
Or are the "nast filename rejected" messages hints on some other problem?