On Mon, 13 Dec 2004, Gisle Vanem wrote:

> It looked rather suspicious to want (S_IRUSR | S_IWUSR) for MingW 
> when opening files in status.c. Patch:
> 
> --- status.c.orig       Wed Dec 08 00:52:04 2004
> +++ status.c    Mon Dec 13 14:44:17 2004
> @@ -77,7 +77,7 @@
>         {
>           switch (so->flags)
>             {
> -#ifdef _MSC_VER
> +#ifdef WIN32
>              case STATUS_OUTPUT_WRITE:
>                so->fd = open (filename,
>                               O_CREAT | O_TRUNC | O_WRONLY,

It's not strictly necessary, since MinGW has:

sh-2.04$ grep -Er '_S_IRUSR|_S_IWUSR' .
./sys/stat.h:#define    _S_IWUSR        _S_IWRITE
./sys/stat.h:#define    _S_IRUSR        _S_IREAD
./sys/stat.h:#define    S_IWUSR         _S_IWUSR
./sys/stat.h:#define    S_IRUSR         _S_IRUSR

James

Reply via email to