diff options
| author | 2014-05-01 03:35:31 +0200 | |
|---|---|---|
| committer | 2014-05-01 03:35:31 +0200 | |
| commit | acd8ea45fe9f74808568d28d1201107e13347e16 (patch) | |
| tree | 0ded30ad860d8bb72652d75c1c19f40a38bd6dfd /tools/idevicebackup2.c | |
| parent | a6610dcd6d721dd315fdf1f0df15cdad30a5a238 (diff) | |
| download | libimobiledevice-acd8ea45fe9f74808568d28d1201107e13347e16.tar.gz libimobiledevice-acd8ea45fe9f74808568d28d1201107e13347e16.tar.bz2 | |
idevicebackup2: Fix invalid check for password given on command line
Diffstat (limited to 'tools/idevicebackup2.c')
| -rw-r--r-- | tools/idevicebackup2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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[]) | |||
| 1543 | uint8_t is_encrypted = 0; | 1543 | uint8_t is_encrypted = 0; |
| 1544 | char *info_path = NULL; | 1544 | char *info_path = NULL; |
| 1545 | if (cmd == CMD_CHANGEPW) { | 1545 | if (cmd == CMD_CHANGEPW) { |
| 1546 | if (!interactive_mode && (!backup_password || !newpw)) { | 1546 | if (!interactive_mode && !backup_password && !newpw) { |
| 1547 | 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"); | 1547 | 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"); |
| 1548 | return -1; | 1548 | return -1; |
| 1549 | } | 1549 | } |
