Switch to unified view

a/src/internfile/internfile.cpp b/src/internfile/internfile.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: internfile.cpp,v 1.33 2007-06-26 16:09:19 dockes Exp $ (C) 2004 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: internfile.cpp,v 1.34 2007-08-28 08:07:52 dockes Exp $ (C) 2004 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
200
    TempFile temp(new TempFileInternal(m_cfg->getSuffixFromMimeType(mt)));
200
    TempFile temp(new TempFileInternal(m_cfg->getSuffixFromMimeType(mt)));
201
    if (temp->ok()) {
201
    if (temp->ok()) {
202
    m_tmpflgs[m_handlers.size()-1] = true;
202
    m_tmpflgs[m_handlers.size()-1] = true;
203
    m_tempfiles.push_back(temp);
203
    m_tempfiles.push_back(temp);
204
    } else {
204
    } else {
205
    LOGERR(("FileInterner::dataToTempFile: cant create tempfile\n"));
205
    LOGERR(("FileInterner::dataToTempFile: cant create tempfile: %s\n",
206
      temp->getreason().c_str()));
206
    return false;
207
    return false;
207
    }
208
    }
208
209
209
    int fd = open(temp->filename(), O_WRONLY);
210
    int fd = open(temp->filename(), O_WRONLY);
210
    if (fd < 0) {
211
    if (fd < 0) {