summaryrefslogtreecommitdiff
path: root/mtd_debug.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-05-05 14:15:43 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-05-05 14:15:43 +0300
commit9dd12c96f17b3f016d495f4db27767049b8fcd95 (patch)
tree768825e4b78f8bdb944291172478d076a55d227e /mtd_debug.c
parent0551a3ab77e1a376b7ee981e934c68876a436d17 (diff)
parentef58bf5331f3032c3e5d95906f0f4d51d853a51a (diff)
Merge branch 'master' of ssh://git.infradead.org/srv/git/mtd-utils
Diffstat (limited to 'mtd_debug.c')
-rw-r--r--mtd_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mtd_debug.c b/mtd_debug.c
index 85d48e9..49a4567 100644
--- a/mtd_debug.c
+++ b/mtd_debug.c
@@ -110,7 +110,7 @@ int flash_to_file (int fd,u_int32_t offset,size_t len,const char *filename)
perror ("lseek()");
goto err0;
}
- outfd = creat (filename,O_WRONLY);
+ outfd = creat (filename,0666);
if (outfd < 0)
{
perror ("creat()");