diff options
| author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-07-09 04:01:30 +0200 |
|---|---|---|
| committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-07-09 04:01:30 +0200 |
| commit | 225b1cb38b4086fe764618766507d44799316f36 (patch) | |
| tree | bc3134de26e529e1d50f6a75d4b7b315122a47a6 | |
| parent | 212860aa27fa57b5f4b5337a4021bfd91e8314ca (diff) | |
| download | videoteco-fork-225b1cb38b4086fe764618766507d44799316f36.tar.gz | |
fixed file backups for HAVE_LONG_FILE_NAMES
* now files can be saved, but the current heuristics of creating a .OLD once and afterwards updating a .BAK might be nonsense
* behaviour without HAVE_LONG_FILE_NAMES should work but does not make sense IMHO: will remove support for that case anyways
| -rw-r--r-- | teccmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1104,7 +1104,7 @@ int status; #ifdef HAVE_LONG_FILE_NAMES (void) strcpy(tmp_filename,base_filename); (void) strcat(tmp_filename,".OLD"); - status = cmd_writebak(fi,filename,path_name,tmp_filename,O_EXCL); + status = cmd_writebak(fi,path_name,filename,tmp_filename,O_EXCL); #else (void) strcpy(tmp_filename,path_name); (void) strcat(tmp_filename,".TECOLD"); @@ -1125,7 +1125,7 @@ int status; #ifdef HAVE_LONG_FILE_NAMES (void) strcpy(tmp_filename,base_filename); (void) strcat(tmp_filename,".BAK"); - status = cmd_writebak(fi,filename,path_name,tmp_filename,0); + status = cmd_writebak(fi,path_name,filename,tmp_filename,0); #else (void) strcpy(tmp_filename,path_name); (void) strcat(tmp_filename,".TECBAK"); |
