|
a/src/internfile/internfile.cpp |
|
b/src/internfile/internfile.cpp |
|
... |
|
... |
248 |
return;
|
248 |
return;
|
249 |
}
|
249 |
}
|
250 |
LOGDEB1(("FileInterner:: after ucomp: m_tdir %s, tfile %s\n",
|
250 |
LOGDEB1(("FileInterner:: after ucomp: m_tdir %s, tfile %s\n",
|
251 |
m_tdir.dirname(), m_tfile.c_str()));
|
251 |
m_tdir.dirname(), m_tfile.c_str()));
|
252 |
m_fn = m_tfile;
|
252 |
m_fn = m_tfile;
|
253 |
// Note: still using the original file's stat. right ?
|
253 |
|
254 |
l_mime = mimetype(m_fn, stp, m_cfg, usfci);
|
254 |
// Now identify the decompressed file.
|
255 |
if (l_mime.empty() && imime)
|
255 |
if ((flags & FIF_forPreview) && imime) {
|
|
|
256 |
// In preview mode, trust the input parameter. The
|
|
|
257 |
// file type may depend on the location, ie, for
|
|
|
258 |
// .1->text/man, and we just moved the file, so
|
|
|
259 |
// we'd be wrong to use mimetype().
|
256 |
l_mime = *imime;
|
260 |
l_mime = *imime;
|
|
|
261 |
} else {
|
|
|
262 |
// Note: still using the original file's stat. right ?
|
|
|
263 |
l_mime = mimetype(m_fn, stp, m_cfg, usfci);
|
|
|
264 |
if (l_mime.empty() && imime)
|
|
|
265 |
l_mime = *imime;
|
|
|
266 |
}
|
257 |
} else {
|
267 |
} else {
|
258 |
LOGINFO(("FileInterner:: %s over size limit %d kbs\n",
|
268 |
LOGINFO(("FileInterner:: %s over size limit %d kbs\n",
|
259 |
m_fn.c_str(), maxkbs));
|
269 |
m_fn.c_str(), maxkbs));
|
260 |
}
|
270 |
}
|
261 |
}
|
271 |
}
|