Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2009-05-17 20:10:39 +0400
committerMartin Poirier <theeth@yahoo.com>2009-05-17 20:10:39 +0400
commit351086dbb83fa42d393a8a4f64287c2b90e23d97 (patch)
tree100f21040cd97cec94b994a08103351d64155406 /source/blender/blenlib
parent20042dbba57907cfb1fcdf64438035a465c4a722 (diff)
Don't create or truncate file when checking for writeable.
That was a nasty bug, would truncate current image file on disk when opening menu to load a new one.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/fileops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index 676a7e32333..ffebd05f2f6 100644
--- a/source/blender/blenlib/intern/fileops.c
+++ b/source/blender/blenlib/intern/fileops.c
@@ -153,7 +153,7 @@ int BLI_is_writable(char *filename)
{
int file;
- file = open(filename, O_BINARY | O_RDWR | O_CREAT | O_TRUNC, 0666);
+ file = open(filename, O_BINARY | O_RDWR, 0666);
if (file < 0)
return 0;