Changeset 2380 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-tools.c
- Timestamp:
- Sep 9, 2009, 8:30:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-tools.c
r2348 r2380 395 395 * - Used: @c bkpinfo->make_cd_use_lilo 396 396 * - Used: @c bkpinfo->media_device 397 * - Used: @c bkpinfo->n fs_mount397 * - Used: @c bkpinfo->netfs_mount 398 398 * - Used: @c bkpinfo->nonbootable_backup 399 399 * - Used: @c bkpinfo->scratchdir … … 668 668 } // end of iso code 669 669 670 if (bkpinfo->backup_media_type == n fs) {671 strcpy(hostname, bkpinfo->n fs_mount);670 if (bkpinfo->backup_media_type == netfs) { 671 strcpy(hostname, bkpinfo->netfs_mount); 672 672 colon = strchr(hostname, ':'); 673 673 if (!colon) { 674 log_it("n fs mount doesn't have a colon in it");674 log_it("netfs mount doesn't have a colon in it"); 675 675 retval++; 676 676 } else { … … 680 680 hent = gethostbyname(hostname); 681 681 if (!hent) { 682 log_it("Can't resolve N FSmount (%s): %s", hostname,682 log_it("Can't resolve Network mount (%s): %s", hostname, 683 683 hstrerror(h_errno)); 684 684 retval++; 685 685 } else { 686 686 mr_asprintf(&ip_address, "%s", inet_ntoa((struct in_addr) *((struct in_addr *) hent->h_addr))); 687 mr_strcat(ip_address, strchr(bkpinfo->n fs_mount, ':'));688 strcpy(bkpinfo->n fs_mount, ip_address);687 mr_strcat(ip_address, strchr(bkpinfo->netfs_mount, ':')); 688 strcpy(bkpinfo->netfs_mount, ip_address); 689 689 paranoid_free(ip_address); 690 690 } 691 691 } 692 store_n fs_config();692 store_netfs_config(); 693 693 } 694 694 … … 759 759 } 760 760 g_current_media_number = 1; 761 bkpinfo->postnuke_tarball[0] = bkpinfo->n fs_mount[0] = '\0';761 bkpinfo->postnuke_tarball[0] = bkpinfo->netfs_mount[0] = '\0'; 762 762 return (res); 763 763 } … … 846 846 bkpinfo->call_after_iso[0] = '\0'; 847 847 bkpinfo->kernel_path[0] = '\0'; 848 bkpinfo->nfs_mount[0] = '\0'; 849 bkpinfo->nfs_user = NULL; 850 bkpinfo->nfs_remote_dir[0] = '\0'; 848 bkpinfo->netfs_mount[0] = '\0'; 849 bkpinfo->netfs_proto = NULL; 850 bkpinfo->netfs_user = NULL; 851 bkpinfo->netfs_remote_dir[0] = '\0'; 851 852 bkpinfo->postnuke_tarball[0] = '\0'; 852 853 bkpinfo->wipe_media_first = FALSE;
Note:
See TracChangeset
for help on using the changeset viewer.