From ae385163f7278dd67dbe3d133d37ff3aabece1ad Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Wed, 13 Apr 2011 16:20:28 +0300 Subject: tests: checkfs: adjust Makefile This patch brings common Makefile (in terms of mtd-utils project) to the checkfs test suite. Additionally it fixes a build error related to usage of open(). Signed-off-by: Andy Shevchenko Signed-off-by: Artem Bityutskiy --- tests/checkfs/checkfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/checkfs/checkfs.c') diff --git a/tests/checkfs/checkfs.c b/tests/checkfs/checkfs.c index 3224d2b..8e74da8 100644 --- a/tests/checkfs/checkfs.c +++ b/tests/checkfs/checkfs.c @@ -414,7 +414,7 @@ void make_new_file(char *filename){ fprintf(stderr, "Creating File:%s. ", filename); - if((dfd = open(filename, O_RDWR | O_CREAT | O_SYNC)) <= 0) + if((dfd = open(filename, O_RDWR | O_CREAT | O_SYNC, S_IRWXU)) <= 0) { printf("Error! Cannot open file: %s\n",filename); perror("Error"); -- cgit v1.2.3