Ignore:
Timestamp:
Sep 23, 2007, 2:41:29 AM (17 years ago)
Author:
Bruno Cornec
Message:

Apply patch from Andree Leidenfrost, modified a bit to use bkpinfo->tmpdir instead of /tmp
or MINDI_CACHE when appropriate. Fix security issues in mondo
Thanks al ot Andree for catching all those issues.
Will not compile needs more work as bkpinfo->tmpdir isn't available everywhere
Should become a global in 3.x when only containing pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/common/newt-specific.c

    r1463 r1644  
    437437
    438438        printf("---FATALERROR--- %s\n", error_string);
    439         sprintf(command, "gzip -9c %s > /tmp/MA.log.gz 2> /dev/null", MONDO_LOGFILE);
     439        sprintf(command, "gzip -9c %s > %s/MA.log.gz 2> /dev/null", MONDO_LOGFILE, MINDI_CACHE);
    440440        system(command);
    441441        printf
     
    445445                ("The list's members can help you, if you attach that file to your e-mail.\n");
    446446        printf("Log file: %s\n", MONDO_LOGFILE);
    447         if (does_file_exist("/tmp/MA.log.gz")) {
    448             printf
    449                 ("FYI, I have gzipped the log and saved it to /tmp/MA.log.gz\n");
     447        if (does_file_exist(MINDI_CACHE"/MA.log.gz")) {
     448            printf("FYI, I have gzipped the log and saved it to "MINDI_CACHE"/MA.log.gz.\n");
    450449        }
    451450        printf("Mondo has aborted.\n");
Note: See TracChangeset for help on using the changeset viewer.