Ignore:
Timestamp:
Jul 5, 2011, 3:26:49 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Try to handle netfs_user better in all cases (NFS and SSHFS)
File:
1 edited

Legend:

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

    r2824 r2847  
    632632
    633633            *colon = '\0';
    634             hent = gethostbyname(hostname);
     634            colon = strchr(hostname, '@');
     635            if (colon) {
     636                *colon = '\0';
     637                colon++;
     638                hent = gethostbyname(colon);
     639                mr_asprintf(bkpinfo->netfs_user,"%s", hostname);
     640            } else {
     641                hent = gethostbyname(hostname);
     642            }
    635643            if (!hent) {
    636644                log_it("Can't resolve Network mount (%s): %s", hostname,
Note: See TracChangeset for help on using the changeset viewer.