Changeset 3013 in MondoRescue


Ignore:
Timestamp:
May 30, 2012, 9:16:16 AM (12 years ago)
Author:
Bruno Cornec
Message:

r4875@localhost: bruno | 2012-05-29 10:03:52 +0200

  • Fix #616 by using the correct temp variable (statically allocated) for NFS analysis
File:
1 edited

Legend:

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

    r2993 r3013  
    24932493                q++;
    24942494                /* new netfs mount */
    2495                 strcpy(tmp,q);
     2495                strcpy(tmp1,q);
    24962496            } else {
    2497                 strcpy(tmp,bkpinfo->netfs_mount);
    2498             }
    2499             sprintf(command, "mount | grep \"%s \" | cut -d' ' -f3",
    2500                     tmp);
    2501             strcpy(bkpinfo->isodir,
    2502                    call_program_and_get_last_line_of_output(command));
     2497                strcpy(tmp1,bkpinfo->netfs_mount);
     2498            }
     2499            sprintf(command, "mount | grep \"%s \" | cut -d' ' -f3", tmp1);
     2500            strcpy(bkpinfo->isodir, call_program_and_get_last_line_of_output(command));
    25032501
    25042502            if (!bkpinfo->restore_data) {
Note: See TracChangeset for help on using the changeset viewer.