added to config: parameter static_auth_dir_tmp

with a path to directory for tmp files (for upload functino)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@572 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-02-12 17:05:32 +00:00
parent 7e0014865e
commit 796985472a
6 changed files with 25 additions and 17 deletions

View File

@@ -11,7 +11,6 @@
#include <sys/stat.h>
#include <cstdio>
#include <errno.h>
#include <string.h>
#include "content.h"
#include "../core/request.h"
#include "../core/data.h"
@@ -66,18 +65,11 @@ struct stat sb;
}
else
{
int err = errno;
int err = errno;
// !! skasowac takze plik z bazy danych
log << log1 << "Content: can't move the tmp file from: " << tmp_filename;
log << log1 << ", to: " << path;
log << log1 << ", errno: " << err;
const char * err_msg = strerror(err);
if( err_msg )
log << log1 << ": " << err_msg;
log << log1 << "Content: can't move the tmp file from: " << tmp_filename << ", to: " << path << ", ";
log.SystemErr(err);
log << logend;
request.status = Error::permission_denied;