Skip to content

Commit 5dfc1f8

Browse files
committed
MB-51835 Merge branch 'cheshire-cat' into neo
* cheshire-cat: MB-51835 Fix 'master-password' and 'server-eshell' crashing server MB-49557 [BP] Don't leak cookie in master-password Change-Id: Ia9aff726220fa048a1b7375fb981b0e1649e6cb7
2 parents 253e46d + f997153 commit 5dfc1f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cbmgr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@ def prompt_for_master_pwd(self, node, cookie, password, cb_cfg_path):
16811681

16821682
name = 'executioner@cb.local'
16831683
args = ['-pa', CB_NS_EBIN_PATH, CB_BABYSITTER_EBIN_PATH, '-noinput', '-name', name, '-proto_dist', 'cb',
1684-
'-eval', 'erlang:set_cookie(list_to_atom(os:getenv("CB_COOKIE"))).', '-epmd_module', 'cb_epmd',
1684+
'-eval', 'erlang:set_cookie(node(), list_to_atom(os:getenv("CB_COOKIE"))).', '-epmd_module', 'cb_epmd',
16851685
'-kernel'] + CB_INETRC_OPT + \
16861686
['dist_config_file', f'"{dist_cfg_file}"', '-run', 'encryption_service',
16871687
'remote_set_password', node]
@@ -2074,7 +2074,7 @@ def execute(self, opts):
20742074
env["CB_COOKIE"] = cookie
20752075

20762076
args = [path, '-name', name, '-setcookie', 'nocookie', '-hidden', '-eval',
2077-
'erlang:set_cookie(list_to_atom(os:getenv("CB_COOKIE"))).',
2077+
'erlang:set_cookie(node(), list_to_atom(os:getenv("CB_COOKIE"))).',
20782078
'-remsh', node, '-proto_dist', 'cb', '-epmd_module', 'cb_epmd', '-pa', CB_NS_EBIN_PATH, '-kernel',
20792079
'dist_config_file', f'"{temp_name}"'] + CB_INETRC_OPT
20802080

0 commit comments

Comments
 (0)