Changeset 1168 in MondoRescue for branches/stable/mondo/src/mondorestore
- Timestamp:
- Feb 15, 2007, 12:27:39 AM (17 years ago)
- Location:
- branches/stable/mondo/src/mondorestore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-restore.c
r1166 r1168 14 14 #include <pthread.h> 15 15 #include "my-stuff.h" 16 #include "../common/mondostructures.h" 17 #include "../common/libmondo.h" 16 #include "mr_mem.h" 17 #include "mr_msg.h" 18 #include "mr_str.h" 19 20 #include "mondostructures.h" 21 #include "libmondo.h" 18 22 #include "mr-externs.h" 19 23 #include "mondo-restore.h" 20 24 #include "mondo-rstr-compare-EXT.h" 21 25 #include "mondo-rstr-tools-EXT.h" 22 #include "mr_mem.h"23 #include "mr_msg.h"24 26 25 27 extern void twenty_seconds_til_yikes(void); … … 1239 1241 newtDrawRootText(0, g_noof_rows - 2, tmp); 1240 1242 newtRefresh(); 1241 strip_spaces(tmp);1243 mr_strip_spaces(tmp); 1242 1244 update_progress_form(tmp); 1243 1245 } … … 1491 1493 newtRefresh(); 1492 1494 } 1493 strip_spaces(tmp);1495 mr_strip_spaces(tmp); 1494 1496 update_progress_form(tmp); 1495 1497 if (current_slice_number == 0) { -
branches/stable/mondo/src/mondorestore/mondo-rstr-newt.c
r1125 r1168 5 5 #include "mr_mem.h" 6 6 #include "mr_msg.h" 7 #include "mr_str.h" 7 8 8 9 extern char *g_mondo_cfg_file; // where m*ndo-restore.cfg (the config file) is stored … … 215 216 strcpy(size_str, size_here); 216 217 // log_it ("Originals = %s,%s,%s,%s", device_str, mountpoint_str, format_str, size_str); 217 strip_spaces(device_str);218 strip_spaces(mountpoint_str);219 strip_spaces(format_str);220 strip_spaces(size_str);218 mr_strip_spaces(device_str); 219 mr_strip_spaces(mountpoint_str); 220 mr_strip_spaces(format_str); 221 mr_strip_spaces(size_str); 221 222 // log_it ("Modified = %s,%s,%s,%s", device_str, mountpoint_str, format_str, size_str); 222 223 if (b_res == bOK) { … … 278 279 ("Add variable", "Enter the name of the variable to add", sz_out, 279 280 MAX_STR_LEN)) { 280 strip_spaces(sz_out);281 mr_strip_spaces(sz_out); 281 282 items = raidrec->additional_vars.entries; 282 283 for (i = 0; … … 498 499 return; 499 500 } 500 strip_spaces(tmp);501 mr_strip_spaces(tmp); 501 502 if (tmp[0] == '[' && tmp[strlen(tmp) - 1] == ']') { 502 503 strcpy(sz, tmp); … … 552 553 return; 553 554 } 554 strip_spaces(tmp);555 mr_strip_spaces(tmp); 555 556 if (tmp[0] == '[' && tmp[strlen(tmp) - 1] == ']') { 556 557 strcpy(sz, tmp); … … 1231 1232 b_res = newtRunForm(myForm); 1232 1233 strcpy(device_str, device_here); 1233 strip_spaces(device_str);1234 mr_strip_spaces(device_str); 1234 1235 strcpy(mountpoint_str, mountpoint_here); 1235 strip_spaces(mountpoint_str);1236 mr_strip_spaces(mountpoint_str); 1236 1237 strcpy(format_str, format_here); 1237 strip_spaces(format_str);1238 mr_strip_spaces(format_str); 1238 1239 if (b_res == bOK && strstr(device_str, RAID_DEVICE_STUB) 1239 1240 && strstr(device_used_to_be, RAID_DEVICE_STUB) … … 1251 1252 && strcmp(mountlist->el[currline].mountpoint, "image")) { 1252 1253 strcpy(size_str, size_here); 1253 strip_spaces(size_str);1254 mr_strip_spaces(size_str); 1254 1255 } else { 1255 1256 sprintf(size_str, "%ld", … … 1898 1899 raidrec->additional_vars.el[lino].label, sz_out); 1899 1900 if (popup_and_get_string(header, comment, sz_out, MAX_STR_LEN)) { 1900 strip_spaces(sz_out);1901 mr_strip_spaces(sz_out); 1901 1902 strcpy(raidrec->additional_vars.el[lino].value, sz_out); 1902 1903 } … … 2306 2307 "At what path on this device can the ISO files be found?", 2307 2308 isodir_path, MAX_STR_LEN / 4)) { 2308 strip_spaces(isodir_device);2309 strip_spaces(isodir_format);2310 strip_spaces(isodir_path);2309 mr_strip_spaces(isodir_device); 2310 mr_strip_spaces(isodir_format); 2311 mr_strip_spaces(isodir_path); 2311 2312 log_it("%d - BBB - isodir_path = %s", isodir_path); 2312 2313 return (TRUE); -
branches/stable/mondo/src/mondorestore/mondo-rstr-newt.h
r1103 r1168 19 19 20 20 #include "my-stuff.h" 21 #include "../common/mondostructures.h" 22 #include "../common/libmondo.h" 21 #include "mr_str.h" 22 23 #include "mondostructures.h" 24 #include "libmondo.h" 23 25 #ifdef __FreeBSD__ 24 26 #define raid_device_record vinum_volume … … 44 46 extern long get_phys_size_of_drive(char *); 45 47 extern bool is_this_device_mounted(char *); 46 extern void strip_spaces(char *);47 48 extern void initialize_raidrec(struct raid_device_record *); 48 49 extern int make_list_of_drives(struct mountlist_itself *, -
branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
r1166 r1168 6 6 #include <pthread.h> 7 7 #include "my-stuff.h" 8 #include "../common/mondostructures.h" 9 #include "../common/libmondo.h" 8 #include "mr_mem.h" 9 #include "mr_msg.h" 10 #include "mr_str.h" 11 12 #include "mondostructures.h" 13 #include "libmondo.h" 10 14 #include "mr-externs.h" 11 15 //#include "mondo-restore.h" 12 16 //#include "mondo-rstr-compare-EXT.h" 13 17 #include "mondo-rstr-tools.h" 14 #include "mr_mem.h"15 #include "mr_msg.h"16 18 17 19 extern bool g_sigpipe_caught; … … 110 112 for (fgets(incoming_ptr, MAX_STR_LEN, fin); 111 113 !feof(fin); fgets(incoming_ptr, MAX_STR_LEN, fin)) { 112 strip_spaces(incoming_ptr);114 mr_strip_spaces(incoming_ptr); 113 115 114 116 if (incoming[0] == '\0') { -
branches/stable/mondo/src/mondorestore/mr-externs.h
r684 r1168 71 71 extern int read_header_block_from_stream(long long *, char *, int *); 72 72 extern void save_filelist(struct s_node *, char *); 73 extern void strip_spaces(char *);74 73 extern int strcmp_inc_numbers(char *, char *); 75 74 extern char *slice_fname(long, long, char *, char *);
Note:
See TracChangeset
for help on using the changeset viewer.