summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-05-01 20:12:12 +0200
committerGravatar Nikias Bassen2022-05-01 20:12:12 +0200
commit795af998e26894ede2245f6dd4d1ecd85478f4a2 (patch)
tree1f2831a9f2bc9a8d1741f05fb3a22ded2724ec5b
parentcf2c7d48380969200034afeab93169e68c34c397 (diff)
downloadlibimobiledevice-795af998e26894ede2245f6dd4d1ecd85478f4a2.tar.gz
libimobiledevice-795af998e26894ede2245f6dd4d1ecd85478f4a2.tar.bz2
idevicebackup2: Fix command line option parsing not processing the backup directory
-rw-r--r--tools/idevicebackup2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index ec7eacd..8e53aaf 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -1610,11 +1610,9 @@ int main(int argc, char *argv[])
1610 1610
1611 if (!strcmp(argv[0], "backup")) { 1611 if (!strcmp(argv[0], "backup")) {
1612 cmd = CMD_BACKUP; 1612 cmd = CMD_BACKUP;
1613 i = 1;
1614 } 1613 }
1615 else if (!strcmp(argv[0], "restore")) { 1614 else if (!strcmp(argv[0], "restore")) {
1616 cmd = CMD_RESTORE; 1615 cmd = CMD_RESTORE;
1617 i = 1;
1618 } 1616 }
1619 else if (!strcmp(argv[0], "cloud")) { 1617 else if (!strcmp(argv[0], "cloud")) {
1620 cmd = CMD_CLOUD; 1618 cmd = CMD_CLOUD;