freebsd-ports/net/boinc-client/files/patch-fix_anonymous_platform_attach
2006-04-29 10:46:23 +00:00

18 lines
494 B
Text

--- client/cs_account.C.orig Fri Mar 3 22:34:00 2006
+++ client/cs_account.C Wed Apr 12 10:58:15 2006
@@ -403,7 +403,14 @@
//
get_project_dir(project, dir);
sprintf(path, "%s/%s", dir, APP_INFO_FILE_NAME);
- if (!boinc_file_exists(path)) {
+ if (boinc_file_exists(path)) {
+ project->anonymous_platform = true;
+ f = fopen(path, "r");
+ if (f) {
+ parse_app_info(project, f);
+ fclose(f);
+ }
+ } else {
retval = remove_project_dir(*project);
}