aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2021-10-20 21:25:13 +1000
committeronefang2021-10-20 21:25:13 +1000
commit2703a1134051f8ee0e45ca244cd2e17082775ba2 (patch)
tree619f8b2823d7352a80032c21d7110e5cd8f773e4
parentAnd another. (diff)
downloadopensim-SC-2703a1134051f8ee0e45ca244cd2e17082775ba2.zip
opensim-SC-2703a1134051f8ee0e45ca244cd2e17082775ba2.tar.gz
opensim-SC-2703a1134051f8ee0e45ca244cd2e17082775ba2.tar.bz2
opensim-SC-2703a1134051f8ee0e45ca244cd2e17082775ba2.tar.xz
More fixing of member backup.
-rw-r--r--src/sledjchisl/sledjchisl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index aacb8c6..de11412 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -2446,8 +2446,11 @@ TODO -
2446 char *t = ourARs->ARs[i]; 2446 char *t = ourARs->ARs[i];
2447 int l0 = strlen(t), l1 = strlen(ourARs->this); 2447 int l0 = strlen(t), l1 = strlen(ourARs->this);
2448 2448
2449 V("Renaming %s -> %s-%s.tgz", t, name, &t[l1]); 2449 if (strcmp(".tgz", &t[l0 - 4]) != 0)
2450 if (shellMeFail("cd %s; mv %s %s-%s.tgz", scBackup, t, name, &t[l1])) E("Failed to mv %s -> %s-%s.tgz!", t, name, &t[l1]); 2450 {
2451 V("Renaming %s -> %s-%s.tgz", t, name, &t[l1]);
2452 if (shellMeFail("cd %s; mv %s %s-%s.tgz", scBackup, t, name, &t[l1])) E("Failed to mv %s -> %s-%s.tgz!", t, name, &t[l1]);
2453 }
2451 } 2454 }
2452 free(ourARs->ARs); 2455 free(ourARs->ARs);
2453 ourARs->ARs = NULL; 2456 ourARs->ARs = NULL;