Changeset 2050 in MondoRescue
- Timestamp:
- Oct 23, 2008, 2:38:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.8/mondo/src/common/libmondo-devices.c
r1988 r2050 2010 2010 // check whether writable - we better remove surrounding spaces for this 2011 2011 strip_spaces(bkpinfo->nfs_remote_dir); 2012 asprintf(&tmp1,"%s/%s/.dummy.txt", bkpinfo->isodir,bkpinfo->nfs_remote_dir); 2013 sprintf(command, "echo hi > %s", tmp1); 2014 while (run_program_and_log_output(command, FALSE)) { 2015 strcpy(tmp, bkpinfo->nfs_remote_dir); 2016 sprintf(prompt, 2012 if (! bkpinfo->disaster_recovery) { 2013 asprintf(&tmp1,"%s/%s/.dummy.txt", bkpinfo->isodir,bkpinfo->nfs_remote_dir); 2014 sprintf(command, "echo hi > %s", tmp1); 2015 while (run_program_and_log_output(command, FALSE)) { 2016 strcpy(tmp, bkpinfo->nfs_remote_dir); 2017 sprintf(prompt, 2017 2018 "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.", 2018 2019 bkpinfo->nfs_remote_dir, bkpinfo->isodir); 2019 if (!popup_and_get_string 2020 ("Directory", prompt, tmp, MAX_STR_LEN)) { 2021 log_to_screen("User has chosen not to backup the PC"); 2022 finish(1); 2023 } 2024 strcpy(bkpinfo->nfs_remote_dir, tmp); 2025 // check whether writable - we better remove surrounding space s for this 2026 strip_spaces(bkpinfo->nfs_remote_dir); 2020 if (!popup_and_get_string 2021 ("Directory", prompt, tmp, MAX_STR_LEN)) { 2022 log_to_screen("User has chosen not to backup the PC"); 2023 finish(1); 2024 } 2025 strcpy(bkpinfo->nfs_remote_dir, tmp); 2026 // check whether writable - we better remove surrounding space s for this 2027 strip_spaces(bkpinfo->nfs_remote_dir); 2028 paranoid_free(tmp1); 2029 asprintf(&tmp1,"%s/%s/.dummy.txt", bkpinfo->isodir,bkpinfo->nfs_remote_dir); 2030 sprintf(command, "echo hi > %s", tmp1); 2031 } 2032 unlink(tmp1); 2027 2033 paranoid_free(tmp1); 2028 asprintf(&tmp1,"%s/%s/.dummy.txt", bkpinfo->isodir,bkpinfo->nfs_remote_dir); 2029 sprintf(command, "echo hi > %s", tmp1); 2030 } 2031 unlink(tmp1); 2032 paranoid_free(tmp1); 2034 } 2033 2035 2034 2036 if (!popup_and_get_string
Note:
See TracChangeset
for help on using the changeset viewer.