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/blenloader/intern | |
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/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 269ea1e8e02..3161e9ad921 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -2092,7 +2092,7 @@ int BLO_write_file(char *dir, int write_flags, char **error_r) } } else - if(BLI_rename(tempname, dir) < 0) { + if(BLI_rename(tempname, dir) != 0) { *error_r= "Can't change old file. File saved with @"; return 0; } |