Changeset 148 in MondoRescue for branches/2.05/mondo/mondo/common/libmondo-tools.c
- Timestamp:
- Dec 2, 2005, 8:22:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.05/mondo/mondo/common/libmondo-tools.c
r128 r148 826 826 write_one_liner_data_file(tmp, iso_path); 827 827 log_it("isodir: %s", iso_path); 828 sprintf(tmp, "%s/ISO-PREFIX", bkpinfo->tmpdir); 829 write_one_liner_data_file(tmp, bkpinfo->prefix); 830 log_it("iso-prefix: %s", bkpinfo->prefix); 828 831 829 832 /* End patch */ … … 969 972 strcpy(bkpinfo->isodir, "/root/images/mondo"); 970 973 } 971 strcpy(bkpinfo->prefix, "mondorescue");974 strcpy(bkpinfo->prefix, STD_PREFIX); 972 975 973 976 bkpinfo->scratchdir[0] = '\0'; … … 1261 1264 return (0); 1262 1265 } else { 1263 sprintf(command, " cat %s | grep \"%s .*\"| cut -d' ' -f2,3,4,5",1264 config_file, label);1266 sprintf(command, "grep '%s .*' %s| cut -d' ' -f2,3,4,5", 1267 label, config_file); 1265 1268 strcpy(value, call_program_and_get_last_line_of_output(command)); 1266 1269 if (strlen(value) == 0) { … … 1477 1480 ("mktemp -q /tmp/mojo-jojo.blah.XXXXXX")); 1478 1481 if (does_file_exist(config_file)) { 1479 sprintf(command, " cat %s | grep -vx \"%s .*\" > %s", config_file,1480 label, tempfile);1482 sprintf(command, "grep -vx '%s .*' %s > %s", 1483 label, config_file, tempfile); 1481 1484 paranoid_system(command); 1482 1485 }
Note:
See TracChangeset
for help on using the changeset viewer.