From e2ae63bcf72ac6a98d3b74281cba514b2e53f306 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 6 Dec 2007 18:58:01 -0800 Subject: Make all the tools use the proper accessor functions. Jeremy. (This used to be commit 6d61bb87975839adb25c304e5e5041f91b12d236) --- source3/utils/smbcacls.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source3/utils/smbcacls.c') diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index e3f94cd458..1057d35db3 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -816,11 +816,10 @@ static struct cli_state *connect_one(const char *server, const char *share) NTSTATUS nt_status; zero_addr(&ss); - if (!cmdline_auth_info.got_pass) { + if (!get_cmdline_auth_info_got_pass()) { char *pass = getpass("Password: "); if (pass) { - pstrcpy(cmdline_auth_info.password, pass); - cmdline_auth_info.got_pass = True; + set_cmdline_auth_info_password(pass); } } @@ -831,7 +830,7 @@ static struct cli_state *connect_one(const char *server, const char *share) lp_workgroup(), get_cmdline_auth_info_password(), 0, - get_cmdline_auth_info.signing_state(), + get_cmdline_auth_info_signing_state(), NULL))) { return c; } else { -- cgit