Skip to content

Commit

Permalink
Use the new 'bu' syntax for backup vs restore operation
Browse files Browse the repository at this point in the history
Change-Id: Ib007705ee562a41869f8add3408101b3a53aa2d7
  • Loading branch information
Christopher Tate committed May 16, 2011
1 parent 35e6a00 commit 024447c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions adb/backup_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand All @@ -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++;
Expand Down

0 comments on commit 024447c

Please sign in to comment.