summaryrefslogtreecommitdiff
path: root/ubi-utils/src/nand2bin.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/src/nand2bin.c')
-rw-r--r--ubi-utils/src/nand2bin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubi-utils/src/nand2bin.c b/ubi-utils/src/nand2bin.c
index be62e30..93ba29f 100644
--- a/ubi-utils/src/nand2bin.c
+++ b/ubi-utils/src/nand2bin.c
@@ -456,7 +456,7 @@ main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
- if (lstat(myargs.arg1, &file_info) != 0) {
+ if (stat(myargs.arg1, &file_info) != 0) {
perror("Cannot fetch file size from input file.\n");
exit(EXIT_FAILURE);
}