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/mondorestore/mondorestore.c

    r2837 r2847  
    31293129                run_program_and_log_output("mkdir -p /tmp/isodir", 5);
    31303130                if (strstr(bkpinfo->netfs_proto, "sshfs")) {
    3131                     sprintf(tmp, "sshfs -o ro %s /tmp/isodir",
    3132                         bkpinfo->netfs_mount);
     3131                    if (bkpinfo->netfs_user) {
     3132                        sprintf(tmp, "sshfs -o ro %s@%s /tmp/isodir",
     3133                            bkpinfo->netfs_user,bkpinfo->netfs_mount);
     3134                    } else {
     3135                        sprintf(tmp, "sshfs -o ro %s /tmp/isodir",
     3136                            bkpinfo->netfs_mount);
     3137                    }
    31333138                } else {
    3134                     sprintf(tmp, "mount %s -o nolock,ro /tmp/isodir",
    3135                         bkpinfo->netfs_mount);
     3139                    if (bkpinfo->netfs_user) {
     3140                        sprintf(tmp, "mount %s@%s -o nolock,ro /tmp/isodir",
     3141                            bkpinfo->netfs_user,bkpinfo->netfs_mount);
     3142                    } else {
     3143                        sprintf(tmp, "mount %s -o nolock,ro /tmp/isodir",
     3144                            bkpinfo->netfs_mount);
     3145                    }
    31363146                }
    31373147                run_program_and_log_output(tmp, 1);
Note: See TracChangeset for help on using the changeset viewer.