diff options
| author | 2011-05-17 18:27:14 +0200 | |
|---|---|---|
| committer | 2011-05-17 18:27:14 +0200 | |
| commit | 27d0da3bc196d28c1095e7c74054f5a6efb7ccf2 (patch) | |
| tree | 2420a40a965e78d4a94ec23e661e8d8bba8a3fdd /tools/idevicebackup2.c | |
| parent | f20cf2b4f14b66f38984e21dbed41da27c03e23a (diff) | |
| download | libimobiledevice-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.
Diffstat (limited to 'tools/idevicebackup2.c')
| -rw-r--r-- | tools/idevicebackup2.c | 8 |
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 { | |||
| 76 | }; | 76 | }; |
| 77 | 77 | ||
| 78 | enum cmd_flags { | 78 | enum cmd_flags { |
| 79 | CMD_FLAG_RESTORE_SYSTEM_FILES = 0, | 79 | CMD_FLAG_RESTORE_SYSTEM_FILES = (1 << 1), |
| 80 | CMD_FLAG_RESTORE_REBOOT = (1 << 1), | 80 | CMD_FLAG_RESTORE_REBOOT = (1 << 2), |
| 81 | CMD_FLAG_RESTORE_COPY_BACKUP = (1 << 2), | 81 | CMD_FLAG_RESTORE_COPY_BACKUP = (1 << 3), |
| 82 | CMD_FLAG_RESTORE_SETTINGS = (1 << 3) | 82 | CMD_FLAG_RESTORE_SETTINGS = (1 << 4) |
| 83 | }; | 83 | }; |
| 84 | 84 | ||
| 85 | static void notify_cb(const char *notification, void *userdata) | 85 | static void notify_cb(const char *notification, void *userdata) |
