Changeset 489 in MondoRescue for trunk/mondo
- Timestamp:
- Apr 19, 2006, 11:02:43 AM (18 years ago)
- Location:
- trunk/mondo
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/configure.in
r426 r489 72 72 AC_CHECK_LIB(pthread, pthread_create, true, [echo "*** Cannot find -lpthread."; echo "*** Please make sure you have the linuxthreads glibc add-on installed."; exit 1]) 73 73 PTHREAD="-lpthread" 74 CFLAGS="$CFLAGS - D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT"74 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT" 75 75 ;; 76 76 *) -
trunk/mondo/distributions/mandriva/spec.m4
r461 r489 8 8 define(`GRP', `Archiving/Backup')dnl 9 9 dnl OBS is replaced vy what is being obsoleted 10 define(`OBS', Obsoletes: libmondo <= 2.04)dnl 10 define(`OBS', `Obsoletes: libmondo <= 2.04 11 Provides: libmondo')dnl -
trunk/mondo/mondo/mondoarchive/mondo-cli.c
r300 r489 217 217 char *tmp; 218 218 char *tmp2; 219 char *tmp1; 219 220 char *psz; 220 221 … … 300 301 strcat(bkpinfo->include_paths, " "); 301 302 } 302 if (stat(flag_val['I'], &buf) != 0) { 303 log_msg("ERROR ! %s doesn't exist", flag_val['I']); 304 fatal_error("ERROR ! You specified a directory to include which doesn't exist"); 305 } 303 asprintf(&tmp1, flag_val['I']); 304 char *p = tmp1; 305 char *q = tmp1; 306 307 /* Cut the flag_val['I'] in parts containing all paths to test them */ 308 while (p != NULL) { 309 q = strchr(p, ' '); 310 if (q != NULL) { 311 *q = '\0'; 312 p = q+1 ; 313 if (stat(p, &buf) != 0) { 314 log_msg(1, "ERROR ! %s doesn't exist", p); 315 fatal_error("ERROR ! You specified a directory to include which doesn't exist"); 316 } 317 } else { 318 if (stat(p, &buf) != 0) { 319 log_msg(1, "ERROR ! %s doesn't exist", p); 320 fatal_error("ERROR ! You specified a directory to include which doesn't exist"); 321 } 322 p = NULL; 323 } 324 } 325 paranoid_free(tmp1); 326 306 327 strncpy(bkpinfo->include_paths + strlen(bkpinfo->include_paths), 307 328 flag_val['I'], … … 516 537 strcat(bkpinfo->exclude_paths, " "); 517 538 } 518 if (stat(flag_val['E'], &buf) != 0) { 519 log_msg(1, "WARNING ! %s doesn't exist", flag_val['E']); 520 } 539 asprintf(&tmp1, flag_val['E']); 540 char *p = tmp1; 541 char *q = tmp1; 542 543 /* Cut the flag_val['E'] in parts containing all paths to test them */ 544 while (p != NULL) { 545 q = strchr(p, ' '); 546 if (q != NULL) { 547 *q = '\0'; 548 p = q+1 ; 549 if (stat(p, &buf) != 0) { 550 log_msg(1, "WARNING ! %s doesn't exist", p); 551 } 552 } else { 553 if (stat(p, &buf) != 0) { 554 log_msg(1, "WARNING ! %s doesn't exist", p); 555 } 556 p = NULL; 557 } 558 } 559 paranoid_free(tmp1); 560 521 561 strncpy(bkpinfo->exclude_paths + strlen(bkpinfo->exclude_paths), 522 562 flag_val['E'], … … 763 803 && 764 804 !run_program_and_log_output 765 (" grep -i suse /etc/issue.net| grep 64", TRUE)) {805 ("egrep -i suse /etc/issue.net | egrep '9.0' | grep 64", TRUE)) { 766 806 bkpinfo->make_cd_use_lilo = TRUE; 767 807 log_to_screen -
trunk/mondo/mondo/mondorestore/mondo-restore.c
r434 r489 1980 1980 filelist_name); 1981 1981 log_msg(2, 1982 "This is a bit silly (ask Hugoto fix mondo-makefilelist, please)");1982 "This is a bit silly (ask dev-team to fix mondo-makefilelist, please)"); 1983 1983 log_msg(2, 1984 1984 "but it's non-critical. It's cosmetic. Don't worry about it."); … … 2057 2057 if (filelist_subset_fname[0] != '\0') { 2058 2058 sprintf(command, 2059 "afio -i -M 8m -b %ld -c %ld %s -w %s%s",2059 "afio -i -M 8m -b %ld -c %ld %s -w '%s' %s", 2060 2060 TAPE_BLOCK_SIZE, 2061 2061 BUFSIZE, executable, filelist_subset_fname,
Note:
See TracChangeset
for help on using the changeset viewer.