Changeset 149 in MondoRescue for trunk/mondo/mondo/common/libmondo-tools.c
- Timestamp:
- Dec 3, 2005, 11:38:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-tools.c
r146 r149 607 607 log_it("isodir: %s", iso_path); 608 608 paranoid_free(iso_path); 609 609 asprintf(&tmp, "%s/ISO-PREFIX", bkpinfo->tmpdir); 610 write_one_liner_data_file(tmp, bkpinfo->prefix); 611 log_it("iso-prefix: %s", bkpinfo->prefix); 612 paranoid_free(tmp); 610 613 /* End patch */ 611 614 } // end of iso code … … 743 746 strcpy(bkpinfo->isodir, "/root/images/mondo"); 744 747 } 745 strcpy(bkpinfo->prefix, "mondorescue");748 strcpy(bkpinfo->prefix, STD_PREFIX); 746 749 747 750 bkpinfo->scratchdir[0] = '\0'; … … 1041 1044 return (0); 1042 1045 } else { 1043 asprintf(&command, " cat %s | grep \"%s .*\"| cut -d' ' -f2,3,4,5",1044 config_file, label);1046 asprintf(&command, "grep '%s .*' %s| cut -d' ' -f2,3,4,5", 1047 label, config_file); 1045 1048 strcpy(value, call_program_and_get_last_line_of_output(command)); 1046 1049 paranoid_free(command); … … 1275 1278 ("mktemp -q /tmp/mojo-jojo.blah.XXXXXX")); 1276 1279 if (does_file_exist(config_file)) { 1277 asprintf(&command, " cat %s | grep -vx \"%s .*\" > %s", config_file,1278 label, tempfile);1280 asprintf(&command, "grep -vx '%s .*' %s > %s", 1281 label, config_file, tempfile); 1279 1282 paranoid_system(command); 1280 1283 paranoid_free(command);
Note:
See TracChangeset
for help on using the changeset viewer.