Changeset 2388


Ignore:
Timestamp:
Sep 10, 2009, 8:25:13 PM (10 years ago)
Author:
bruno
Message:

Fix mondoarchive CLI analysis for NETFS type of requests

Location:
branches/2.2.9/mondo/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-cli.c

    r2387 r2388  
    10111011                fatal_error("No protocol correctly specified for remote share mount. Use protocol://server:share");
    10121012            }
    1013             p++
     1013            p++;
    10141014            /* p points on to the string server:/path */
    1015             strcpy(bkpinfo->netfs_mount,p);
     1015            strcpy(tmp,p);
    10161016
    10171017            /* going back to protocol */
     
    10221022            mr_asprintf(&q,"%s",bkpinfo->netfs_mount);
    10231023            bkpinfo->netfs_proto = q;
     1024            strcpy(bkpinfo->netfs_mount,tmp);
    10241025        }
    10251026        /* test if we specified a user */
  • branches/2.2.9/mondo/src/mondorestore/mondo-rstr-tools.c

    r2386 r2388  
    827827    if (!strcmp(value, "nfs")) {
    828828        mr_free(bkpinfo->netfs_proto);
    829         mr_asprintf(bkpinfo->netfs_proto, "nfs");
     829        mr_asprintf(&(bkpinfo->netfs_proto), "nfs");
    830830    }
    831831
Note: See TracChangeset for help on using the changeset viewer.