s3:utils: Remove pointless if-clause for remote_machine
authorAndreas Schneider <asn@samba.org>
Tue, 22 Aug 2017 13:46:07 +0000 (15:46 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 23 Aug 2017 11:16:20 +0000 (13:16 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12975

Review with: git show -U20

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
source3/utils/smbpasswd.c

index 1f43f4fa75ed9891c4f7ef24b8a68f2375237b64..3136de6a23dd44ed05f5757c68a64e5914ebb53e 100644 (file)
@@ -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) {