Changeset 3610 in MondoRescue for branches/3.2/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Nov 5, 2016, 6:12:23 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-filelist.c
r3381 r3610 861 861 mr_asprintf(tmp1, "zcat %s | wc -l", filelist_fname); 862 862 log_msg(6, "tmp1 = %s", tmp1); 863 lines_in_filelist = atol(call_program_and_get_last_line_of_output(tmp1)); 863 tmp = call_program_and_get_last_line_of_output(tmp1); 864 lines_in_filelist = atol(tmp); 865 mr_free(tmp); 864 866 mr_free(tmp1); 865 867 … … 1302 1304 char *new = NULL; 1303 1305 char *tmp = NULL; 1306 char *tmp2 = NULL; 1304 1307 char *dir = NULL; 1305 1308 static int percentage = 0; … … 1358 1361 1359 1362 mr_asprintf(tmp, "wc -l %s | awk '{print $1;}'", g_skeleton_filelist); 1360 g_skeleton_entries = 1 + atol(call_program_and_get_last_line_of_output(tmp)); 1363 tmp2 = call_program_and_get_last_line_of_output(tmp); 1364 g_skeleton_entries = 1 + atol(tmp2); 1365 mr_free(tmp2); 1361 1366 mr_free(tmp); 1362 1367 … … 1523 1528 } 1524 1529 make_hole_for_file(sz_datefile); 1525 write_one_liner_data_file(sz_datefile,1526 call_program_and_get_last_line_of_output1527 ("date +%s"));1530 tmp2 = call_program_and_get_last_line_of_output("date +%s"); 1531 write_one_liner_data_file(sz_datefile, tmp2); 1532 mr_free(tmp2); 1528 1533 } else if (lstat(sz_datefile, &statbuf)) { 1529 1534 log_msg(2, "Warning - unable to find date of previous backup. Full backup instead."); … … 1550 1555 } 1551 1556 log_msg(1, "Calculating filelist"); 1552 mr_asprintf(tmp2, "%s", call_program_and_get_last_line_of_output("mount | grep -Ew 'ntfs|ntfs-3g|fat|vfat|dos' | awk '{print $3}'"));1557 tmp2 = call_program_and_get_last_line_of_output("mount | grep -Ew 'ntfs|ntfs-3g|fat|vfat|dos' | awk '{print $3}'"); 1553 1558 if (strlen(tmp2) < 1) { 1554 1559 mr_asprintf(tmp1," "); … … 1557 1562 mr_asprintf(tmp1, "find %s -name '/win386.swp' -o -name '/hiberfil.sys' -o -name '/pagefile.sys' 2> /dev/null\n",tmp2); 1558 1563 mr_free(tmp2); 1559 mr_asprintf(tmp2, "%s", call_program_and_get_last_line_of_output(tmp1));1564 tmp2 = call_program_and_get_last_line_of_output(tmp1); 1560 1565 log_msg(2, "Found windows files: %s",tmp2); 1561 1566 }
Note:
See TracChangeset
for help on using the changeset viewer.