Changeset 1767 in MondoRescue for branches/2.2.5/mondo/src
- Timestamp:
- Nov 5, 2007, 5:42:27 PM (17 years ago)
- Location:
- branches/2.2.5/mondo/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/libmondo-devices.c
r1746 r1767 1863 1863 { 1864 1864 char *tmp; 1865 char *tmp1 = NULL; 1865 1866 char *sz_size; 1866 1867 char *command; … … 2212 2213 // check whether writable - we better remove surrounding spaces for this 2213 2214 strip_spaces(bkpinfo->nfs_remote_dir); 2214 sprintf(command, "echo hi > %s/%s/.dummy.txt", bkpinfo->isodir,2215 bkpinfo->nfs_remote_dir);2215 asprintf(&tmp1,"%s/%s/.dummy.txt", bkpinfo->isodir,bkpinfo->nfs_remote_dir); 2216 sprintf(command, "echo hi > %s", tmp1); 2216 2217 while (run_program_and_log_output(command, FALSE)) { 2217 2218 strcpy(tmp, bkpinfo->nfs_remote_dir); … … 2227 2228 // check whether writable - we better remove surrounding space s for this 2228 2229 strip_spaces(bkpinfo->nfs_remote_dir); 2229 sprintf(command, "echo hi > %s/%s/.dummy.txt", bkpinfo->isodir, 2230 bkpinfo->nfs_remote_dir); 2231 } 2230 paranoid_free(tmp1); 2231 asprintf(&tmp1,"%s/%s/.dummy.txt", bkpinfo->isodir,bkpinfo->nfs_remote_dir); 2232 sprintf(command, "echo hi > %s", tmp1); 2233 } 2234 unlink(tmp1); 2235 paranoid_free(tmp1); 2236 2232 2237 if (!popup_and_get_string 2233 2238 ("Prefix.", -
branches/2.2.5/mondo/src/mondoarchive/mondo-cli.c
r1746 r1767 820 820 821 821 if (flag_set['n']) { 822 sprintf(tmp, "echo hi > %s/%s/.dummy.txt", bkpinfo->isodir,823 bkpinfo->nfs_remote_dir);822 asprintf(&tmp1,"%s/%s/.dummy.txt", bkpinfo->isodir,bkpinfo->nfs_remote_dir); 823 sprintf(tmp, "echo hi > %s", tmp1); 824 824 if (run_program_and_log_output(tmp, 2)) { 825 825 retval++; … … 829 829 log_to_screen(tmp); 830 830 } 831 unlink(tmp1); 832 paranoid_free(tmp1); 831 833 } 832 834
Note:
See TracChangeset
for help on using the changeset viewer.