summaryrefslogtreecommitdiff
path: root/tests/checkfs/checkfs.c
diff options
context:
space:
mode:
authorAndy Shevchenko <ext-andriy.shevchenko@nokia.com>2011-04-13 16:20:28 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-14 15:33:46 +0300
commitae385163f7278dd67dbe3d133d37ff3aabece1ad (patch)
treec035bc04b3d805bb48bd8a3bb93bf589073ea6e7 /tests/checkfs/checkfs.c
parent2d3c16c2dc7af1c7a87044446e48730429299d32 (diff)
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 <ext-andriy.shevchenko@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/checkfs/checkfs.c')
-rw-r--r--tests/checkfs/checkfs.c2
1 files changed, 1 insertions, 1 deletions
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");