From acd8ea45fe9f74808568d28d1201107e13347e16 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 1 May 2014 03:35:31 +0200 Subject: idevicebackup2: Fix invalid check for password given on command line --- tools/idevicebackup2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/idevicebackup2.c') diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index e67a6e6..5576283 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -1543,7 +1543,7 @@ int main(int argc, char *argv[]) uint8_t is_encrypted = 0; char *info_path = NULL; if (cmd == CMD_CHANGEPW) { - if (!interactive_mode && (!backup_password || !newpw)) { + if (!interactive_mode && !backup_password && !newpw) { printf("ERROR: Can't get password input in non-interactive mode. Either pass password(s) on the command line, or enable interactive mode with -i or --interactive.\n"); return -1; } -- cgit v1.1-32-gdbae