aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2013-06-18 20:10:19 -0700
committerKoushik Dutta <koushd@gmail.com>2013-06-18 20:10:19 -0700
commit593b54c8f46d40f31bc47504fba3a0b9c2cdc573 (patch)
tree4150ecbc80477ac61ed051bbf338135438634f5c
parent51eb3cfd395824ce444c468ea9488d790e420155 (diff)
downloadbootable_recovery-593b54c8f46d40f31bc47504fba3a0b9c2cdc573.zip
bootable_recovery-593b54c8f46d40f31bc47504fba3a0b9c2cdc573.tar.gz
bootable_recovery-593b54c8f46d40f31bc47504fba3a0b9c2cdc573.tar.bz2
fix stat usage
Change-Id: Iab3290adca1602a23fc407d2b3f50b9aeac60389
-rw-r--r--nandroid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nandroid.c b/nandroid.c
index 2f872d1..f343c1d 100644
--- a/nandroid.c
+++ b/nandroid.c
@@ -597,7 +597,7 @@ int nandroid_restore_partition_extended(const char* backup_path, const char* mou
restore_handler = tar_extract_wrapper;
strcpy(tmp, "/proc/self/fd/0");
}
- else if (0 != (ret = statfs(tmp, &file_info))) {
+ else if (0 != (ret = stat(tmp, &file_info))) {
// can't find the backup, it may be the new backup format?
// iterate through the backup types
printf("couldn't find default\n");