Changeset 1628 in MondoRescue
- Timestamp:
- Sep 9, 2007, 3:14:36 AM (17 years ago)
- Location:
- branches/stable/mondo/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-tools.c
r1627 r1628 721 721 strcpy(bkpinfo->isodir, "/var/cache/mondo/iso"); 722 722 } 723 strcpy(bkpinfo->prefix, STD_PREFIX); 723 mr_asprintf(&tmp,mr_conf->prefix); 724 bkpinfo->prefix = tmp; 724 725 725 726 bkpinfo->scratchdir[0] = '\0'; -
branches/stable/mondo/src/common/mondostructures.h
r1609 r1628 443 443 * If backup_media_type is anything else, this is ignored. 444 444 */ 445 char prefix[MAX_STR_LEN / 4];445 char *prefix; 446 446 447 447 /** -
branches/stable/mondo/src/mondoarchive/mondo-cli.c
r1626 r1628 614 614 615 615 if (flag_set['p']) { 616 strncpy(bkpinfo->prefix, flag_val['p'], MAX_STR_LEN / 4);616 mr_allocstr(bkpinfo->prefix, flag_val['p']); 617 617 } 618 618 -
branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
r1594 r1628 800 800 } 801 801 if (read_cfg_var(cfg_file, "iso-prefix", value) == 0) { 802 strcpy(bkpinfo->prefix,value);802 mr_allocstr(bkpinfo->prefix,value); 803 803 } else { 804 strcpy(bkpinfo->prefix,STD_PREFIX);804 mr_allocstr(bkpinfo->prefix,STD_PREFIX); 805 805 } 806 806 } else if (!strcmp(value, "nfs")) { 807 807 bkpinfo->backup_media_type = nfs; 808 808 if (read_cfg_var(cfg_file, "iso-prefix", value) == 0) { 809 strcpy(bkpinfo->prefix,value);809 mr_allocstr(bkpinfo->prefix,value); 810 810 } else { 811 strcpy(bkpinfo->prefix,STD_PREFIX);811 mr_allocstr(bkpinfo->prefix,STD_PREFIX); 812 812 } 813 813 if (strstr(call_program_and_get_last_line_of_output … … 819 819 fatal_error("no imgname variable in environment"); 820 820 } 821 strcpy(bkpinfo->prefix,envtmp1);821 mr_allocstr(bkpinfo->prefix,envtmp1); 822 822 } 823 823 -
branches/stable/mondo/src/mondorestore/mondorestore.c
r1626 r1628 438 438 read_cfg_file_into_bkpinfo(g_mondo_cfg_file, bkpinfo); 439 439 iamhere("Done loading config file; resizing ML"); 440 strcpy(tmp, bkpinfo->prefix);441 440 if (popup_and_get_string 442 ("Prefix", "Prefix of your ISO images ?", tmp, MAX_STR_LEN / 4)) { 443 strcpy(bkpinfo->prefix, tmp); 441 ("Prefix", "Prefix of your ISO images ?", bkpinfo->prefix, MAX_STR_LEN / 4)) { 444 442 mr_msg(1, "Prefix set to %s",bkpinfo->prefix); 445 443 } … … 3047 3045 3048 3046 if (argc == 3 && strcmp(argv[1], "-p") == 0) { 3049 strcpy(bkpinfo->prefix,argv[2]);3047 mr_allocstr(bkpinfo->prefix,argv[2]); 3050 3048 mr_msg(1,"Prefix forced to %s",bkpinfo->prefix); 3051 3049 }
Note:
See TracChangeset
for help on using the changeset viewer.