From 593b54c8f46d40f31bc47504fba3a0b9c2cdc573 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Tue, 18 Jun 2013 20:10:19 -0700 Subject: fix stat usage Change-Id: Iab3290adca1602a23fc407d2b3f50b9aeac60389 --- nandroid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.1