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:
authorCampbell Barton <ideasman42@gmail.com>2008-04-12 14:55:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-04-12 14:55:10 +0400
commit188687208968d95e57c6560f28da7b76aac1d574 (patch)
tree21ffbe93a46cd03f9119a13c13f85da9da66dc0b /source/blender
parent4bab327c1b16f9e27fe53935ea9d1d5dda6718d2 (diff)
simple fix for "Unable to make version backup" warning when saving files. missing a return.
For *nix sustems, recent physics pointcache refactor uses stdio.h's remove() rather then system("rm -f ...") for removing files, since it was a lot slower for removing pointcache. Ton used the system command because there was some problem using remove() ~6years back, but he cant remember why, (maybe its not a problem now) Simple error, remove wasn't returning a value, but keep an eye out for problems removing files, and if anyone can reproduce the "Unable to make version backup" problem when saving, we should look into it. Also added a note about using # in the output path for blenders command line help text.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenlib/intern/fileops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index 268f9280bea..b750dfbdf8f 100644
--- a/source/blender/blenlib/intern/fileops.c
+++ b/source/blender/blenlib/intern/fileops.c
@@ -339,7 +339,9 @@ int BLI_delete(char *file, int dir, int recursive)
sprintf(str, "/bin/rmdir \"%s\"", file);
return system(str);
}
- else remove(file); //sprintf(str, "/bin/rm -f \"%s\"", file);
+ else {
+ return remove(file); //sprintf(str, "/bin/rm -f \"%s\"", file);
+ }
}
return -1;
}