* [PATCH, mtd-utils] creat(2) expects a creation mode parameter, not an open flag
@ 2010-03-07 21:15 Ferenc Wagner
2010-04-01 12:51 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Ferenc Wagner @ 2010-03-07 21:15 UTC (permalink / raw)
To: linux-mtd
Signed-off-by: Ferenc Wagner <wferi@niif.hu>
---
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()");
--
1.5.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH, mtd-utils] creat(2) expects a creation mode parameter, not an open flag
2010-03-07 21:15 [PATCH, mtd-utils] creat(2) expects a creation mode parameter, not an open flag Ferenc Wagner
@ 2010-04-01 12:51 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2010-04-01 12:51 UTC (permalink / raw)
To: Ferenc Wagner; +Cc: linux-mtd
On Sun, 2010-03-07 at 22:15 +0100, Ferenc Wagner wrote:
> creat(2) expects a creation mode parameter, not an open flag
Pushed to the mtd-utils tree, thanks.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-01 12:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-07 21:15 [PATCH, mtd-utils] creat(2) expects a creation mode parameter, not an open flag Ferenc Wagner
2010-04-01 12:51 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).