Switch to unified view

a/src/internfile/uncomp.cpp b/src/internfile/uncomp.cpp
...
...
116
116
117
    // Execute command and retrieve output file name, check that it exists
117
    // Execute command and retrieve output file name, check that it exists
118
    ExecCmd ex;
118
    ExecCmd ex;
119
    int status = ex.doexec(cmd, args, 0, &tfile);
119
    int status = ex.doexec(cmd, args, 0, &tfile);
120
    if (status || tfile.empty()) {
120
    if (status || tfile.empty()) {
121
    LOGERR("uncompressfile: doexec: failed for [" << ifn << "] status 0x" <<
121
    LOGERR("uncompressfile: doexec: " << cmd << " " <<
122
               status << "\n");
122
               stringsToString(args) << " failed for [" <<
123
               ifn << "] status 0x" << status << "\n");
123
    if (!m_dir->wipe()) {
124
    if (!m_dir->wipe()) {
124
        LOGERR("uncompressfile: wipedir failed\n");
125
        LOGERR("uncompressfile: wipedir failed\n");
125
    }
126
    }
126
    return false;
127
    return false;
127
    }
128
    }
128
    if (tfile[tfile.length() - 1] == '\n')
129
    rtrimstring(tfile, "\n\r");
129
  tfile.erase(tfile.length() - 1, 1);
130
    m_tfile = tfile;
130
    m_tfile = tfile;
131
    m_srcpath = ifn;
131
    m_srcpath = ifn;
132
    return true;
132
    return true;
133
}
133
}
134
134