From: Andreas Schneider Date: Tue, 22 Aug 2017 13:46:07 +0000 (+0200) Subject: s3:utils: Remove pointless if-clause for remote_machine X-Git-Tag: tdb-1.3.15~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a4bfcb539b4489f397b2bc9369215b7e03e620e;p=thirdparty%2Fsamba.git s3:utils: Remove pointless if-clause for remote_machine BUG: https://bugzilla.samba.org/show_bug.cgi?id=12975 Review with: git show -U20 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlet --- diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 1f43f4fa75e..3136de6a23d 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -570,12 +570,10 @@ static int process_nonroot(int local_flags) domain = get_global_sam_name(); } - if (remote_machine != NULL) { - old_pw = get_pass("Old SMB password:",stdin_passwd_get); - if (old_pw == NULL) { - fprintf(stderr, "Unable to get old password.\n"); - exit(1); - } + old_pw = get_pass("Old SMB password:",stdin_passwd_get); + if (old_pw == NULL) { + fprintf(stderr, "Unable to get old password.\n"); + exit(1); } if (!new_passwd) {