From 8c866dc252189fd876b8ff0b7a5279e588760a1a Mon Sep 17 00:00:00 2001 From: "Koushik K. Dutta" Date: Mon, 8 Mar 2010 14:20:37 -0800 Subject: [PATCH] fix backup --- extendedcommands.c | 6 +++--- extendedcommands.h | 2 +- recovery.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extendedcommands.c b/extendedcommands.c index 104957a..6a00cd3 100644 --- a/extendedcommands.c +++ b/extendedcommands.c @@ -335,9 +335,9 @@ int do_nandroid_backup(char* backup_name) char cmd[PATH_MAX]; if (NULL != backup_name) - sprintf(cmd, "/sbin/nandroid-mobile.sh backup /sdcard/clockworkmod/backup/ %s", backup_name); - else - sprintf(cmd, "/sbin/nandroid-mobile.sh backup /sdcard/clockworkmod/backup/"); + sprintf(cmd, "/sbin/nandroid-mobile.sh backup /sdcard/clockworkmod/backup/ %s", backup_name); + else + sprintf(cmd, "/sbin/nandroid-mobile.sh backup /sdcard/clockworkmod/backup/"); ui_print("Performing backup...\n"); int ret = system(cmd); if (ret != 0) diff --git a/extendedcommands.h b/extendedcommands.h index ddb619c..8a5a1f2 100644 --- a/extendedcommands.h +++ b/extendedcommands.h @@ -17,7 +17,7 @@ void ui_set_show_text(int value); int -do_nandroid_backup(); +do_nandroid_backup(char* backup_name); int do_nandroid_restore(); diff --git a/recovery.c b/recovery.c index 1df7739..440167b 100644 --- a/recovery.c +++ b/recovery.c @@ -446,7 +446,7 @@ prompt_and_wait() show_install_update_menu(); break; case ITEM_BACKUP: - do_nandroid_backup(); + do_nandroid_backup(NULL); break; case ITEM_RESTORE: show_nandroid_restore_menu();