Changeset 3288 in MondoRescue for branches/3.2/mondo/src/common/libmondo-devices.c
- Timestamp:
- May 6, 2014, 10:24:12 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-devices.c
r3278 r3288 1687 1687 int c = 0; 1688 1688 int lastpos = 0; 1689 char VG[MAX_STR_LEN];1689 char *VG = NULL; 1690 1690 char *tmp = NULL; 1691 1691 char *command = NULL; … … 1849 1849 mr_asprintf(command, "pvdisplay -v %s 2>/dev/null|grep \"VG Name\"|awk '{print $NF}'", partitions[i]); 1850 1850 log_msg(5, " Running: %s", command); 1851 strcpy(VG, call_program_and_get_last_line_of_output(command));1851 mr_asprintf(VG, "%s", call_program_and_get_last_line_of_output(command)); 1852 1852 mr_free(command); 1853 1853 … … 1912 1912 } 1913 1913 mr_free(tmp); 1914 mr_free(VG); 1914 1915 continue; 1915 1916 } else {
Note:
See TracChangeset
for help on using the changeset viewer.