Ignore:
Timestamp:
Sep 10, 2009, 8:31:57 PM (15 years ago)
Author:
Bruno Cornec
Message:

Fix a problem in netfs analysis in mondoarchive
(Backport from 2.2.9)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/mondorestore/mondo-rstr-tools.c

    r2383 r2389  
    745745            mr_asprintf(bkpinfo->prefix, "%s", STD_PREFIX);
    746746        }
    747     } else if (!strcmp(value, "netfs")) {
     747    } else if ((!strcmp(value, "netfs")) || (!strcmp(value, "nfs"))) {
     748        /* Stay compatible with previous versions by allowing nfs as an entry here */
    748749        bkpinfo->backup_media_type = netfs;
    749750        bkpinfo->please_dont_eject = TRUE;
     
    768769        }
    769770        mr_free(tmp);
     771    /* For compatibility, force protocol in old nfs case to be transparent */
     772    if (!strcmp(value, "nfs")) {
     773        mr_free(bkpinfo->netfs_proto);
     774        mr_asprintf(bkpinfo->netfs_proto, "nfs");
     775    }
    770776
    771777    } else if (!strcmp(value, "tape")) {
Note: See TracChangeset for help on using the changeset viewer.