Changeset 3504


Ignore:
Timestamp:
Feb 12, 2016, 4:11:06 PM (22 months ago)
Author:
bruno
Message:
  • Fix a compilation error (I know should have a hook !)
  • Remove usage of mktemp (security issue) and use mkstemp instead
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-tools.c

    r3503 r3504  
    483483        if (find_home_of_exe("xorriso")) {
    484484            mr_asprintf(isofs_cmd, "%s", MONDO_XORRISO_CMD);
    485         else if (find_home_of_exe("genisoimage")) {
     485        } else if (find_home_of_exe("genisoimage")) {
    486486            mr_asprintf(isofs_cmd, "%s", MONDO_GENISOIMAGE_CMD);
    487487        } else {
     
    670670char* mkdtemp(char *template)
    671671{
    672     if (mktemp(template) == NULL || mkdir(template, 0700) != 0)
     672    if (mkstemp(template) == NULL || mkdir(template, 0700) != 0)
    673673        return NULL;
    674674    return template;
Note: See TracChangeset for help on using the changeset viewer.