Ignore:
Timestamp:
Sep 25, 2007, 12:54:32 AM (13 years ago)
Author:
Bruno Cornec
Message:

Fix a bug where df was using locale to print messages and wasn't filtered correctly
Improve setup of tmpdir again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/mondoarchive/mondo-cli.c

    r1645 r1655  
    244244        flag_set[i] = FALSE;
    245245    }
    246     //  strcpy (bkpinfo->tmpdir, "/root/images/mondo");
    247246    //  strcpy (bkpinfo->scratchdir, "/home");
    248247    for (j = 1; j <= MAX_NOOF_MEDIA; j++) {
     
    273272    sprintf(tmp, "rm -Rf %s/mondo.scratch.*", bkpinfo->scratchdir);
    274273    paranoid_system(tmp);
    275     sprintf(bkpinfo->tmpdir + strlen(bkpinfo->tmpdir), "/tmp.mondo.%ld",
    276             random() % 32767);
    277274    sprintf(bkpinfo->scratchdir + strlen(bkpinfo->scratchdir),
    278275            "/mondo.scratch.%ld", random() % 32767);
     
    853850    }
    854851    if (flag_set['T']) {
    855         sprintf(bkpinfo->tmpdir, "%s/tmp.mondo.%ld", flag_val['T'],
    856                 random() % 32768);
    857         sprintf(tmp, "touch %s/.foo.dat", flag_val['T']);
     852        setup_tmpdir(flag_val['T']);
     853        sprintf(tmp, "touch %s/.foo.dat", bkpinfo->tmpdir);
    858854        if (run_program_and_log_output(tmp, 1)) {
    859855            retval++;
     
    862858            fatal_error("I cannot write to the tempdir you specified.");
    863859        }
    864         sprintf(tmp, "ln -sf %s/.foo.dat %s/.bar.dat", flag_val['T'],
    865                 flag_val['T']);
     860        sprintf(tmp, "ln -sf %s/.foo.dat %s/.bar.dat", bkpinfo->tmpdir, bkpinfo->tmpdir);
    866861        if (run_program_and_log_output(tmp, 1)) {
    867862            retval++;
Note: See TracChangeset for help on using the changeset viewer.