From: divverent Date: Tue, 8 Jan 2008 10:46:50 +0000 (+0000) Subject: no O_APPEND here X-Git-Tag: xonotic-v0.1.0preview~2570 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=472aac7534ff46bfbc36d547987b6425c6bad01e;p=xonotic%2Fdarkplaces.git no O_APPEND here git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7936 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/fs.c b/fs.c index 2454bea3..186c06ae 100644 --- a/fs.c +++ b/fs.c @@ -1039,7 +1039,7 @@ void FS_AddGameHierarchy (const char *dir) #ifdef WIN32 if(!COM_CheckParm("-appdata")) { - int fd = open (va("%s%s/config.cfg", fs_basedir, dir), O_WRONLY | O_CREAT | O_APPEND, 0666); + int fd = open (va("%s%s/config.cfg", fs_basedir, dir), O_WRONLY | O_CREAT, 0666); // note: no O_TRUNC here! if(fd >= 0) { close(fd);