diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-04-12 19:03:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-04-12 19:03:47 +0400 |
commit | 0ec76c6dcf462f51d8f2a46c21dbd83870fc4eda (patch) | |
tree | 4b62b2c53dd2f4075b4b2a51c539e6de440e38b6 /source/blender/blenkernel | |
parent | 165bfce94e985898027d748331898efe9ad6f53c (diff) |
removed blenders backup feature.
sprintf(str, "/bin/su root -c 'cd %s; /bin/tar cf - \"%s\" | (/bin/cd %s; /bin/tar xf -)'", from, file, to);
return system(str);
This would ask for a password in blenders terminal, in ubuntu there is no root user...
If this feature is added back it should be written in a much nicer way.
Also made HKey toggle hidden files in the file selector.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/packedFile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/packedFile.c b/source/blender/blenkernel/intern/packedFile.c index bd33fafe23c..4b557535606 100644 --- a/source/blender/blenkernel/intern/packedFile.c +++ b/source/blender/blenkernel/intern/packedFile.c @@ -320,11 +320,11 @@ int writePackedFile(char * filename, PackedFile *pf, int guimode) if (remove_tmp) { if (ret_value == RET_ERROR) { - if (BLI_rename(tempname, name) == RET_ERROR) { + if (BLI_rename(tempname, name) != 0) { if(guimode) error("Error restoring tempfile. Check files: '%s' '%s'", tempname, name); } } else { - if (BLI_delete(tempname, 0, 0) == RET_ERROR) { + if (BLI_delete(tempname, 0, 0) != 0) { if(guimode) error("Error deleting '%s' (ignored)"); } } |