diff options
author | Ferenc Wagner <wferi@niif.hu> | 2010-03-07 22:15:58 +0100 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-04-01 15:51:17 +0300 |
commit | 4f8c7a0e925c904b37f590b2513824c6d6bba85f (patch) | |
tree | 983baca190e4ec722010ae2f30b2ecede089a28c | |
parent | 94fc0263667926cfad7647c1054b4473cc92ecee (diff) |
mtd_debug: fix creation mode parameter
creat(2) expects a creation mode parameter, not an open flag.
Signed-off-by: Ferenc Wagner <wferi@niif.hu>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r-- | mtd_debug.c | 2 |
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()"); |