Skip to content

Commit

Permalink
Merge pull request #5838 from BOINC/dpa_rename
Browse files Browse the repository at this point in the history
show error if project dir rename fails
  • Loading branch information
AenBleidd authored Oct 6, 2024
2 parents efe4770 + 8f1ea99 commit d91f955
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion client/cs_scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,14 @@ int CLIENT_STATE::handle_scheduler_reply(
//
strcpy(project->_project_dir, "");
strcpy(path2, project->project_dir());
boinc_rename(old_project_dir, path2);
retval = boinc_rename(old_project_dir, path2);
if (retval) {
msg_printf(project, MSG_USER_ALERT,
"Can't rename project dir from %s to %s",
old_project_dir, path2
);
return retval;
}

// reset the project (clear jobs etc.).
// If any jobs are running, their soft links
Expand Down

0 comments on commit d91f955

Please sign in to comment.