freebsd-ports/net/boinc-client/files/patch-fix_anonymous_platform_attach

19 lines
494 B
Text
Raw Normal View History

2006-04-29 12:46:23 +02:00
--- 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 @@
//
2006-04-29 12:46:23 +02:00
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 {
2006-04-29 12:46:23 +02:00
retval = remove_project_dir(*project);
}