Changeset 2317 in MondoRescue
- Timestamp:
- Aug 18, 2009, 2:36:42 PM (16 years ago)
- Location:
- branches/2.2.10/mondo/src/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-archive.c
r2313 r2317 63 63 extern bool g_cd_recovery; 64 64 extern char *g_mondo_home; 65 /* 66 extern char *g_tmpfs_mountpt; 67 */ 68 extern char *g_serial_string; 65 66 /** 67 * The serial string (used to differentiate between backups) of the current backup. 68 */ 69 char *g_serial_string = NULL; 70 69 71 extern char *g_getfacl; 70 72 extern char *g_getfattr; … … 1213 1215 mr_asprintf(&data_disks_file, "%s/all.tar.gz", bkpinfo->tmpdir); 1214 1216 1215 mr_asprintf(&g_serial_string, "%s", call_program_and_get_last_line_of_output("dd if=/dev/urandom bs=16 count=1 2> /dev/null |hexdump | tr -s ' ' '0' | head -n1"));1216 strip_spaces(g_serial_string);1217 mr_asprintf(&g_serial_string, "%s", call_program_and_get_last_line_of_output("dd if=/dev/urandom bs=16 count=1 2> /dev/null | hexdump | tr -s ' ' '0' | head -n1")); 1218 mr_strip_spaces(g_serial_string); 1217 1219 mr_strcat(g_serial_string, "...word."); 1218 1220 log_msg(2, "g_serial_string = '%s'", g_serial_string); -
branches/2.2.10/mondo/src/common/libmondo-tools.c
r2301 r2317 34 34 extern int g_current_media_number; 35 35 extern char *MONDO_LOGFILE; 36 extern char *g_serial_string; 36 37 37 38 /* Reference to global bkpinfo */ … … 56 57 */ 57 58 char *g_mondo_home = NULL; 58 59 /**60 * The serial string (used to differentiate between backups) of the current backup.61 */62 char *g_serial_string = NULL;63 59 64 60 /** … … 1383 1379 malloc_string(g_boot_mountpt); 1384 1380 malloc_string(g_mondo_home); 1385 /*1386 malloc_string(g_tmpfs_mountpt);1387 */1388 1381 malloc_string(g_magicdev_command); 1389 1382 } else { 1390 1383 paranoid_free(g_boot_mountpt); 1391 1384 paranoid_free(g_mondo_home); 1392 /* 1393 paranoid_free(g_tmpfs_mountpt); 1394 */ 1385 paranoid_free(g_magicdev_command); 1386 1395 1387 mr_free(g_serial_string); 1396 paranoid_free(g_magicdev_command);1397 1398 1388 } 1399 1389 }
Note:
See TracChangeset
for help on using the changeset viewer.