- Timestamp:
- Mar 4, 2024, 1:23:30 PM (15 months ago)
- Location:
- branches/3.3/mondo/src/common
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/common/libmondo-archive.c
r3823 r3826 1591 1591 } 1592 1592 1593 if (bkpinfo->call_before_iso [0]!= NULL) {1593 if (bkpinfo->call_before_iso != NULL) { 1594 1594 mr_asprintf(message_to_screen, "Running pre-ISO call for CD#%d", g_current_media_number); 1595 1595 res = eval_call_to_make_ISO(bkpinfo->call_before_iso, destfile, g_current_media_number, MONDO_LOGFILE, message_to_screen); -
branches/3.3/mondo/src/common/libmondo-cli.c
r3823 r3826 719 719 if (!flag_set['d'] && (flag_set['c'] || flag_set['w'] || flag_set['C'])) { 720 720 if (g_kernel_version >= 2.6) { 721 tmp1 = popup_and_get_string("Device", "Please specify the device",bkpinfo->media_device, MAX_STR_LEN / 4);721 tmp1 = mr_popup_and_get_string("Device", "Please specify the device",bkpinfo->media_device); 722 722 if (tmp1 == NULL) { 723 723 retval++; … … 826 826 827 827 if ((flag_set['P']) && (! bkpinfo->restore_data)) { 828 strncpy(bkpinfo->postnuke_tarball, flag_val['P'], MAX_STR_LEN);828 mr_asprintf(bkpinfo->postnuke_tarball, "%s", flag_val['P']); 829 829 } 830 830 -
branches/3.3/mondo/src/common/libmondo-devices.c
r3823 r3826 2308 2308 log_msg(1, "bkpinfo->media_device = %s", bkpinfo->media_device); 2309 2309 mr_asprintf(comment, "Please specify your %s drive's /dev entry", mds); 2310 tmp2 = mr_popup_and_get_string("Device?", comment, bkpinfo->media_device ,(MAX_STR_LEN / 4)-1);2310 tmp2 = mr_popup_and_get_string("Device?", comment, bkpinfo->media_device); 2311 2311 if (!tmp2) { 2312 2312 log_to_screen("User has chosen not to backup the machine"); … … 2335 2335 if (bkpinfo->media_device != NULL) { 2336 2336 if (bkpinfo->backup_media_type == usb) { 2337 tmp2 = mr_popup_and_get_string("/dev entry?", "What is the /dev entry of your USB Disk/Key, please?", bkpinfo->media_device , (MAX_STR_LEN / 4)-1);2337 tmp2 = mr_popup_and_get_string("/dev entry?", "What is the /dev entry of your USB Disk/Key, please?", bkpinfo->media_device); 2338 2338 } else { 2339 2339 if (g_kernel_version < 2.6) { 2340 tmp2 = mr_popup_and_get_string("Device node?", "What is the SCSI node of your CD (re)writer, please?", bkpinfo->media_device ,(MAX_STR_LEN / 4)-1);2340 tmp2 = mr_popup_and_get_string("Device node?", "What is the SCSI node of your CD (re)writer, please?", bkpinfo->media_device); 2341 2341 } else { 2342 tmp2 = mr_popup_and_get_string("/dev entry?", "What is the /dev entry of your CD (re)writer, please?", bkpinfo->media_device ,(MAX_STR_LEN / 4)-1);2342 tmp2 = mr_popup_and_get_string("/dev entry?", "What is the /dev entry of your CD (re)writer, please?", bkpinfo->media_device); 2343 2343 } 2344 2344 } … … 2392 2392 } 2393 2393 if (bkpinfo->media_device == NULL) { 2394 tmp2 = mr_popup_and_get_string("Device name?", "What is the /dev entry of your tape streamer?", bkpinfo->media_device ,(MAX_STR_LEN / 4)-1);2394 tmp2 = mr_popup_and_get_string("Device name?", "What is the /dev entry of your tape streamer?", bkpinfo->media_device); 2395 2395 if (tmp2 == NULL) { 2396 2396 log_to_screen("User has chosen not to backup the machine"); -
branches/3.3/mondo/src/common/libmondo-files.c
r3821 r3826 1080 1080 mr_free(command); 1081 1081 1082 if (bkpinfo->postnuke_tarball [0]) {1082 if (bkpinfo->postnuke_tarball != NULL) { 1083 1083 mr_asprintf(command, "cp -f %s %s/post-nuke.tgz", bkpinfo->postnuke_tarball, bkpinfo->tmpdir); 1084 1084 res = run_program_and_log_output(command, FALSE); -
branches/3.3/mondo/src/common/libmondo-tools.c
r3823 r3826 687 687 } 688 688 g_current_media_number = 1; 689 bkpinfo->postnuke_tarball[0] = '\0';690 689 return (res); 691 690 } … … 861 860 bkpinfo->netfs_user = NULL; 862 861 bkpinfo->netfs_remote_dir = NULL; 863 bkpinfo->postnuke_tarball [0] = '\0';862 bkpinfo->postnuke_tarball = NULL; 864 863 bkpinfo->subdir = NULL; 865 864 bkpinfo->wipe_media_first = FALSE; -
branches/3.3/mondo/src/common/mondostructures.h
r3823 r3826 593 593 /** 594 594 * A tarball containing a program called "usr/bin/post-nuke" that will be run 595 * after nuking the system. If "", do not use a post-nuke tarball.596 */ 597 char postnuke_tarball[MAX_STR_LEN];595 * after nuking the system. If NULL, do not use a post-nuke tarball. 596 */ 597 char *postnuke_tarball; 598 598 599 599 /** -
branches/3.3/mondo/src/common/newt-specific.c
r3822 r3826 430 430 mr_free(bkpinfo->image_devs); 431 431 mr_free(bkpinfo->media_device); 432 mr_free(bkpinfo->postnuke_tarball); 432 433 /* Then free the structure */ 433 434 paranoid_free(bkpinfo);
Note:
See TracChangeset
for help on using the changeset viewer.