Changeset 3194 in MondoRescue for branches/3.2/mondo/src/common/libmondo-tools.c
- Timestamp:
- Sep 29, 2013, 7:27:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-tools.c
r3191 r3194 34 34 extern int g_current_media_number; 35 35 extern char *MONDO_LOGFILE; 36 extern char *g_serial_string;37 36 38 37 /* Reference to global bkpinfo */ … … 61 60 * The serial string (used to differentiate between backups) of the current backup. 62 61 */ 63 char *g_serial_string = NULL;62 extern char *g_serial_string; 64 63 65 64 /** … … 359 358 char *cdr_exe = NULL; 360 359 char *tmp = NULL; 361 char *p = NULL;362 360 char *call_before_iso_user = NULL; 363 361 char *iso_dev = NULL; … … 633 631 mr_asprintf(ip_address, "%s", inet_ntoa((struct in_addr) *((struct in_addr *) hent->h_addr))); 634 632 mr_strcat(ip_address, strchr(bkpinfo->netfs_mount, ':')); 635 strcpy(bkpinfo->netfs_mount, ip_address);636 mr_free(ip_address);633 mr_free(bkpinfo->netfs_mount); 634 bkpinfo->netfs_mount = ip_address; 637 635 } 638 636 } … … 801 799 void reset_bkpinfo() 802 800 { 803 int i;804 801 log_msg(1, "Initializing bkpinfo"); 805 802 … … 824 821 bkpinfo->internal_tape_block_size = DEFAULT_INTERNAL_TAPE_BLOCK_SIZE; 825 822 826 /* We need tmpdir as early as possible for further function calls */ 827 bkpinfo->tmpdir = NULL; // Really setup after 823 /* We need tmpdir as early as possible for further function calls */ 824 bkpinfo->tmpdir[0]= '\0'; // Really setup after 825 bkpinfo->scratchdir[0]= '\0'; // Really setup after 828 826 setup_tmpdir(NULL); 829 827 setup_scratchdir(NULL); … … 848 846 bkpinfo->call_after_iso[0] = '\0'; 849 847 bkpinfo->kernel_path[0] = '\0'; 850 bkpinfo->netfs_mount [0] = '\0';848 bkpinfo->netfs_mount = NULL; 851 849 bkpinfo->netfs_proto = NULL; 852 850 bkpinfo->netfs_user = NULL; 853 bkpinfo->netfs_remote_dir [0] = '\0';851 bkpinfo->netfs_remote_dir = NULL; 854 852 bkpinfo->postnuke_tarball[0] = '\0'; 855 853 bkpinfo->subdir = NULL; … … 1365 1363 * Function pointer to the @c log_debug_msg function to use. Points to standard_log_debug_msg() by default. 1366 1364 */ 1367 void (*log_debug_msg) (int, const char *, const char *, int, const char *, 1368 ...) = standard_log_debug_msg; 1365 void (*log_debug_msg) (int, const char *, const char *, int, const char *, ...) = standard_log_debug_msg; 1369 1366 1370 1367
Note:
See TracChangeset
for help on using the changeset viewer.