Changeset 2400 in MondoRescue for branches/2.2.10/mondo/src/common


Ignore:
Timestamp:
Sep 15, 2009, 7:33:17 PM (16 years ago)
Author:
Bruno Cornec
Message:
  • Use protocol name when displaying restore progress instead of netfs
  • Ask for network protocol name at restore time

(Backport from 2.2.9)

Location:
branches/2.2.10/mondo/src/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-devices.c

    r2383 r2400  
    17191719            mr_free(command);
    17201720
     1721            p = popup_and_get_string("Network protocol", "Which Network protocol should I use?", bkpinfo->netfs_proto);
     1722            if (p == NULL) {
     1723                log_to_screen("User has chosen not to backup the PC");
     1724                finish(1);
     1725            }
     1726            mr_free(bkpinfo->netfs_proto);
     1727            bkpinfo->netfs_proto = p;
     1728
    17211729            p = popup_and_get_string("Network share", "Which remote Network share should I mount?", bkpinfo->netfs_mount);
    17221730            if (p == NULL) {
  • branches/2.2.10/mondo/src/common/libmondo-string.c

    r2382 r2400  
    10751075 * @note The returned string points to static storage that will be overwritten with each call.
    10761076 */
    1077 /* BCO/BERLIOS change that function to allocate memory, return a pointer and modify caller to free the mem */
    10781077char *media_descriptor_string(t_bkptype type_of_bkp) {
    10791078
     
    11031102        break;
    11041103    case netfs:
    1105         mr_asprintf(type_of_backup, "netfs");
     1104        mr_asprintf(type_of_backup, "%s", bkpinfo->netfs_proto);
    11061105        break;
    11071106    case usb:
Note: See TracChangeset for help on using the changeset viewer.