Re: [U-Boot] [PATCHv3 5/8] mkenvimage: Read/Write from/to stdin/out by default or if the filename is "-"

2012-01-08 Thread Mike Frysinger
On Sunday 08 January 2012 07:02:40 David Wagner wrote: > Le 08/01/2012 07:50, Mike Frysinger a écrit : > > On Thursday 05 January 2012 13:44:56 David Wagner wrote: > >> + bin_fd = creat(bin_filename, S_IRUSR | S_IWUSR | S_IRGRP | > >> + S_IWGRP); > >

Re: [U-Boot] [PATCHv3 5/8] mkenvimage: Read/Write from/to stdin/out by default or if the filename is "-"

2012-01-08 Thread David Wagner
Le 08/01/2012 07:50, Mike Frysinger a écrit : On Thursday 05 January 2012 13:44:56 David Wagner wrote: + bin_fd = creat(bin_filename, S_IRUSR | S_IWUSR | S_IRGRP | +S_IWGRP); this should prob be open() -mike What is wrong with creat()

Re: [U-Boot] [PATCHv3 5/8] mkenvimage: Read/Write from/to stdin/out by default or if the filename is "-"

2012-01-07 Thread Mike Frysinger
On Thursday 05 January 2012 13:44:56 David Wagner wrote: > + bin_fd = creat(bin_filename, S_IRUSR | S_IWUSR | S_IRGRP | > + S_IWGRP); this should prob be open() -mike signature.asc Description: This is a digitally signed message part.

[U-Boot] [PATCHv3 5/8] mkenvimage: Read/Write from/to stdin/out by default or if the filename is "-"

2012-01-05 Thread David Wagner
Signed-off-by: David Wagner --- tools/mkenvimage.c | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index eb9a8f2..6db2b21 100644 --- a/tools/mkenvimage.c +++ b/tools/mkenvimage.c @@ -173,15 +173,9 @@ int m