Changeset 2071


Ignore:
Timestamp:
Dec 5, 2008, 1:02:29 PM (11 years ago)
Author:
Bruno Cornec
Message:

Avoids checking writable NFS share in interactive mode (doesn't work anymore)

File:
1 edited

Legend:

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

    r2052 r2071  
    18511851        // check whether writable - we better remove surrounding spaces for this
    18521852        strip_spaces(bkpinfo->nfs_remote_dir);
    1853         if (! bkpinfo->disaster_recovery) {
    1854             asprintf(&tmp1,"%s/%s/.dummy.txt", bkpinfo->isodir,bkpinfo->nfs_remote_dir);
    1855             sprintf(command, "echo hi > %s", tmp1);
    1856             while (run_program_and_log_output(command, FALSE)) {
    1857                 strcpy(tmp, bkpinfo->nfs_remote_dir);
    1858                 sprintf(prompt,
    1859                     "Directory '%s' under mountpoint '%s' does not exist or is not writable. You can fix this or change the directory and retry or cancel the backup.",
    1860                     bkpinfo->nfs_remote_dir, bkpinfo->isodir);
    1861                 if (!popup_and_get_string
    1862                     ("Directory", prompt, tmp, MAX_STR_LEN)) {
    1863                     log_to_screen("User has chosen not to backup the PC");
    1864                     finish(1);
    1865                 }
    1866                 strcpy(bkpinfo->nfs_remote_dir, tmp);
    1867                 // check whether writable - we better remove surrounding space s for this
    1868                 strip_spaces(bkpinfo->nfs_remote_dir);
    1869                 paranoid_free(tmp1);
    1870                 asprintf(&tmp1,"%s/%s/.dummy.txt", bkpinfo->isodir,bkpinfo->nfs_remote_dir);
    1871                 sprintf(command, "echo hi > %s", tmp1);
    1872             }
    1873             unlink(tmp1);
    1874             paranoid_free(tmp1);
    1875         }
    18761853
    18771854        if (!popup_and_get_string
Note: See TracChangeset for help on using the changeset viewer.