aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");