From 3f3bb62ba63373c3cdf2495f97c7461ed5b373ef Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 4 Dec 2001 05:16:54 +0000 Subject: [PATCH] smbpasswd is *ugly*! However this looks like the best spot to init the account policy db... (fix segfaults on all local smbpasswd ops) Andrew Bartlett --- source/utils/smbpasswd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c index 92136bea7a1..b129268f347 100644 --- a/source/utils/smbpasswd.c +++ b/source/utils/smbpasswd.c @@ -221,6 +221,8 @@ static BOOL password_change(const char *remote_machine, char *user_name, return ret; } + init_account_policy(); + ret = local_password_change(user_name, local_flags, new_passwd, err_str, sizeof(err_str), msg_str, sizeof(msg_str));