mirror of https://github.com/BOINC/boinc.git
Bug fixes for job file management and BOINC GAHP, from Jaime Frey
This commit is contained in:
parent
ef5db41382
commit
29c41fd980
|
@ -102,9 +102,9 @@ function query_files($r) {
|
|||
//
|
||||
$job_file = BoincJobFile::lookup_md5($md5);
|
||||
if ($job_file && $job_file->delete_time < $delete_time) {
|
||||
$retval = $job_file::update("delete_time=$delete_time");
|
||||
$retval = $job_file->update("delete_time=$delete_time");
|
||||
if ($retval) {
|
||||
xml_error(-1, "job_file::update() failed: ".mysql_error());
|
||||
xml_error(-1, "job_file->update() failed: ".mysql_error());
|
||||
}
|
||||
}
|
||||
if (file_exists($path)) {
|
||||
|
|
|
@ -714,7 +714,7 @@ char* get_cmd() {
|
|||
if (c == EOF) {
|
||||
return NULL;
|
||||
}
|
||||
if (c == '\n') {
|
||||
if (c == '\n' || c == '\r') {
|
||||
p[len] = 0;
|
||||
return p;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue