Skip to content

Commit 7294138

Browse files
client: finish fix for AM prefs
(BAM! used mixed http/https, needed to strip that off)
1 parent 8ea39c0 commit 7294138

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

client/acct_mgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ int ACCT_MGR_INFO::write_info() {
763763
}
764764

765765
if (strlen(login_name)) {
766-
p = fopen(ACCT_MGR_URL_FILENAME, "w");
766+
p = fopen(ACCT_MGR_LOGIN_FILENAME, "w");
767767
if (p) {
768768
fprintf(
769769
p,

client/cs_scheduler.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -679,11 +679,11 @@ int CLIENT_STATE::handle_scheduler_reply(
679679
// insert extra elements, write to disk, and parse
680680
//
681681
if (sr.global_prefs_xml) {
682-
if (gstate.acct_mgr_info.using_am()
683-
// ignore prefs if we're using prefs from account mgr
684-
//
685-
&& !strcmp(global_prefs.source_project, gstate.acct_mgr_info.master_url)
686-
) {
682+
// ignore prefs if we're using prefs from account mgr
683+
// BAM! currently has mixed http, https; trim off
684+
char* p = strchr(global_prefs.source_project, '/');
685+
char* q = strchr(gstate.acct_mgr_info.master_url, '/');
686+
if (gstate.acct_mgr_info.using_am() && p && q && !strcmp(p, q)) {
687687
if (log_flags.sched_op_debug) {
688688
msg_printf(project, MSG_INFO,
689689
"ignoring prefs from project; using prefs from AM"

0 commit comments

Comments
 (0)