summaryrefslogtreecommitdiffstats
path: root/adb/backup_service.c
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2011-05-16 16:23:04 -0700
committerChristopher Tate <ctate@google.com>2011-05-16 16:28:59 -0700
commit024447c3c3dcf63b54cc481f2c6ecbda10823269 (patch)
treebfbe482e5b4c2054c8af70beec076d5493fb2ebf /adb/backup_service.c
parent35e6a003ca5d59cbaa504d8bb8458e8bdd995906 (diff)
downloadsystem_core-024447c3c3dcf63b54cc481f2c6ecbda10823269.zip
system_core-024447c3c3dcf63b54cc481f2c6ecbda10823269.tar.gz
system_core-024447c3c3dcf63b54cc481f2c6ecbda10823269.tar.bz2
Use the new 'bu' syntax for backup vs restore operation
Change-Id: Ib007705ee562a41869f8add3408101b3a53aa2d7
Diffstat (limited to 'adb/backup_service.c')
-rw-r--r--adb/backup_service.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/adb/backup_service.c b/adb/backup_service.c
index f5dc0b2..1e55efc 100644
--- a/adb/backup_service.c
+++ b/adb/backup_service.c
@@ -55,7 +55,7 @@ int backup_service(char* args) {
char** backup_args;
// child -- actually run the backup here
- argc = 1; // room for the basic 'bu' argv[0]
+ argc = 2; // room for the basic 'bu' argv[0] and 'backup' argv[1]
for (p = (char*)args; p && *p; ) {
argc++;
while (*p && *p != ':') p++;
@@ -64,7 +64,8 @@ int backup_service(char* args) {
backup_args = (char**) alloca(argc*sizeof(char*) + 1);
backup_args[0] = "bu";
- argc = 1; // run through again to build the argv array
+ backup_args[1] = "backup";
+ argc = 2; // run through again to build the argv array
for (p = (char*)args; *p; ) {
backup_args[argc++] = p;
while (*p && *p != ':') p++;