Changeset 1213 in MondoRescue for branches/stable/mondo/src/common
- Timestamp:
- Feb 26, 2007, 2:04:43 PM (18 years ago)
- Location:
- branches/stable/mondo/src/common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-archive.c
r1193 r1213 77 77 extern FILE *g_tape_stream; 78 78 extern long long g_tape_posK; 79 extern char *g_mondo_home;80 79 extern char *g_tmpfs_mountpt; 81 80 extern bool g_cd_recovery; … … 347 346 mr_asprintf(&zipparams, "-Z -P %s -G %d -T 3k", bkpinfo->zip_exe, 348 347 bkpinfo->compression_level); 349 mr_asprintf(&tmp, "%s/do-not-compress-these", g_mondo_home);348 mr_asprintf(&tmp, "%s/do-not-compress-these", MONDO_SHARE); 350 349 if (does_file_exist(tmp)) { 351 350 mr_asprintf(&tmp1, " -E +%s", tmp); … … 3586 3585 mr_free(cdno_fname); 3587 3586 3588 mr_asprintf(&tmp, "cp -f %s/autorun %s/", g_mondo_home,3587 mr_asprintf(&tmp, "cp -f %s/autorun %s/", MONDO_SHARE, 3589 3588 bkpinfo->scratchdir); 3590 3589 if (run_program_and_log_output(tmp, FALSE)) { -
branches/stable/mondo/src/common/libmondo-files.c
r1194 r1213 29 29 30 30 extern int g_currentY; 31 extern char *g_mondo_home;32 31 33 32 /** … … 951 950 952 951 /* BERLIOS: Why do we need to do it here as well ? */ 953 mr_msg(4, "g_mondo_home='%s'", g_mondo_home); 954 if (strlen(g_mondo_home) < 2) { 955 find_and_store_mondoarchives_home(g_mondo_home); 956 } 957 mr_asprintf(&command, CP_BIN " --parents -pRdf %s %s", g_mondo_home, 952 mr_asprintf(&command, CP_BIN " --parents -pRdf %s %s", MONDO_SHARE, 958 953 bkpinfo->scratchdir); 959 954 … … 970 965 mr_free(command); 971 966 972 mr_asprintf(&tmp, "%s/payload.tgz", g_mondo_home);967 mr_asprintf(&tmp, "%s/payload.tgz", MONDO_SHARE); 973 968 if (does_file_exist(tmp)) { 974 969 log_it("Untarring payload %s to scratchdir %s", tmp, … … 1223 1218 } 1224 1219 1225 mr_asprintf(&tmp, "%s/do-not-compress-these", g_mondo_home);1220 mr_asprintf(&tmp, "%s/do-not-compress-these", MONDO_SHARE); 1226 1221 if (!does_file_exist(tmp)) { 1227 1222 mr_free(tmp); -
branches/stable/mondo/src/common/libmondo-tools.c
r1184 r1213 47 47 */ 48 48 static char *g_boot_mountpt = NULL; 49 50 /**51 * The location of Mondo's home directory.52 */53 char *g_mondo_home = NULL;54 49 55 50 /** … … 685 680 686 681 run_program_and_log_output("rm -Rf /tmp/changed.files*", FALSE); 687 if (find_and_store_mondoarchives_home(g_mondo_home)) {688 fprintf(stderr,689 "Cannot find Mondo's homedir. I think you have >1 'mondo' directory on your hard disk. Please delete the superfluous 'mondo' directories and try again\n");690 res++;691 return (res);692 682 } 693 683 res += some_basic_system_sanity_checks(); … … 1220 1210 iamhere("Malloc'ing globals"); 1221 1211 malloc_string(g_boot_mountpt); 1222 malloc_string(g_mondo_home);1223 1212 malloc_string(g_tmpfs_mountpt); 1224 1213 malloc_string(g_erase_tmpdir_and_scratchdir); … … 1228 1217 iamhere("Freeing globals"); 1229 1218 mr_free(g_boot_mountpt); 1230 mr_free(g_mondo_home);1231 1219 mr_free(g_tmpfs_mountpt); 1232 1220 mr_free(g_erase_tmpdir_and_scratchdir); -
branches/stable/mondo/src/common/newt-specific.c
r1198 r1213 37 37 extern char *g_tmpfs_mountpt; 38 38 extern char *g_boot_mountpt; 39 extern char *g_mondo_home;40 39 extern char *ps_options; 41 40 extern char *ps_proc_id;
Note:
See TracChangeset
for help on using the changeset viewer.