Displaying 2 results from an estimated 2 matches for "86e5959".
Did you mean:
861559
2013 Jun 28
0
Re: [PATCH] hivex: Add O_BINARY flag to open calls for platforms where this isn't the default (such as Win32)
...gt; Subject: [PATCH] hivex: Add O_BINARY flag to open calls for platforms where
> this isn't the default (such as Win32)
>
> ---
> lib/hivex.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/lib/hivex.c b/lib/hivex.c
> index 040b1e7..86e5959 100644
> --- a/lib/hivex.c
> +++ b/lib/hivex.c
> @@ -265,9 +265,9 @@ hivex_open (const char *filename, int flags)
> goto error;
>
> #ifdef O_CLOEXEC
> - h->fd = open (filename, O_RDONLY | O_CLOEXEC);
> + h->fd = open (filename, O_RDONLY | O_CLOEXEC | O_BINARY...
2013 Jun 27
2
[PATCH] hivex: Add O_BINARY flag to open calls for platforms where this isn't the default (such as Win32)
Hi
As my cross platform registry editor (FRED available from
https://www.pinguin.lu (sorry for advertising but I couldn't resist
;-))) is evolving, I recently added write support to it.
While under Linux everything worked nice, the Windblows build didn't.
It seems that Windows opens files by default in text mode (O_TEXT) which
is a problem. The attached patch adds the O_BINARY flag to