summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-05-17 18:27:14 +0200
committerGravatar Nikias Bassen2011-05-17 18:27:14 +0200
commit27d0da3bc196d28c1095e7c74054f5a6efb7ccf2 (patch)
tree2420a40a965e78d4a94ec23e661e8d8bba8a3fdd
parentf20cf2b4f14b66f38984e21dbed41da27c03e23a (diff)
downloadlibimobiledevice-27d0da3bc196d28c1095e7c74054f5a6efb7ccf2.tar.gz
libimobiledevice-27d0da3bc196d28c1095e7c74054f5a6efb7ccf2.tar.bz2
idevicebackup2: fix restore command option handling
The constant for --system option was set to 0 resulting in this option not being evaluated.
-rw-r--r--tools/idevicebackup2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index 3f38830..d9481f7 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -76,10 +76,10 @@ enum plist_format_t {
};
enum cmd_flags {
- CMD_FLAG_RESTORE_SYSTEM_FILES = 0,
- CMD_FLAG_RESTORE_REBOOT = (1 << 1),
- CMD_FLAG_RESTORE_COPY_BACKUP = (1 << 2),
- CMD_FLAG_RESTORE_SETTINGS = (1 << 3)
+ CMD_FLAG_RESTORE_SYSTEM_FILES = (1 << 1),
+ CMD_FLAG_RESTORE_REBOOT = (1 << 2),
+ CMD_FLAG_RESTORE_COPY_BACKUP = (1 << 3),
+ CMD_FLAG_RESTORE_SETTINGS = (1 << 4)
};
static void notify_cb(const char *notification, void *userdata)