mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=1630
This commit is contained in:
parent
636bb2ce04
commit
99fa91addd
|
@ -240,7 +240,7 @@ int ACTIVE_TASK::start(bool first_time) {
|
||||||
printf("link %s to %s\n", file_path, link_path);
|
printf("link %s to %s\n", file_path, link_path);
|
||||||
}
|
}
|
||||||
if (file_ref.copy_file) {
|
if (file_ref.copy_file) {
|
||||||
retval = boinc_copy(buf, link_path);
|
retval = boinc_copy(file_path, link_path);
|
||||||
if (retval) {
|
if (retval) {
|
||||||
msg_printf(wup->project, MSG_ERROR, "Can't copy %s to %s", file_path, link_path);
|
msg_printf(wup->project, MSG_ERROR, "Can't copy %s to %s", file_path, link_path);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
|
@ -632,6 +632,7 @@ static void AllocHashInit(void) {
|
||||||
// Returns the number of bytes, that are not freed (leaks)
|
// Returns the number of bytes, that are not freed (leaks)
|
||||||
static ULONG AllocHashDeinit(void) {
|
static ULONG AllocHashDeinit(void) {
|
||||||
ULONG ulRet = 0;
|
ULONG ulRet = 0;
|
||||||
|
return 0;
|
||||||
bool bAppend = g_CallstackOutputType != ACOutput_XML;
|
bool bAppend = g_CallstackOutputType != ACOutput_XML;
|
||||||
AllocCheckFileOpen(bAppend); // open global log-file
|
AllocCheckFileOpen(bAppend); // open global log-file
|
||||||
|
|
||||||
|
|
|
@ -326,7 +326,10 @@ int dir_size(char* dirpath, double& size) {
|
||||||
|
|
||||||
int boinc_copy(char* orig, char* newf) {
|
int boinc_copy(char* orig, char* newf) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return !CopyFile(orig, newf, FALSE);
|
if(CopyFile(orig, newf, FALSE))
|
||||||
|
return 0;
|
||||||
|
else
|
||||||
|
return GetLastError();
|
||||||
#else
|
#else
|
||||||
char cmd[256];
|
char cmd[256];
|
||||||
sprintf(cmd, "cp %s %s", orig, newf);
|
sprintf(cmd, "cp %s %s", orig, newf);
|
||||||
|
|
Loading…
Reference in New Issue