]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_linux.c
Major update, been neglecting CVS for some time...
[xonotic/darkplaces.git] / sys_linux.c
index e886874ff541bbd8e21d31dc2b445e1271131ec8..6428c17910c174b3b0ac97d1ab650851b14f560a 100644 (file)
@@ -259,11 +259,13 @@ int Sys_FileOpenWrite (char *path)
 
        umask (0);
        
-       handle = open(path,O_RDWR | O_CREAT | O_TRUNC
-       , 0666);
+       handle = open(path,O_RDWR | O_CREAT | O_TRUNC, 0666);
 
        if (handle == -1)
-               Sys_Error ("Error opening %s: %s", path,strerror(errno));
+       {
+               Con_Printf("Sys_FileOpenWrite: Error opening %s: %s", path, strerror(errno));
+               return 0;
+       }
 
        return handle;
 }