bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WHINY_USERS=0


From: Aharon Robbins
Subject: Re: WHINY_USERS=0
Date: Fri, 30 Oct 2009 13:27:42 +0200

Thanks for this. You beat me to it.

Arnold

> From address@hidden  Fri Oct 30 13:12:16 2009
> X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on server1.f7.net
> X-Spam-Level: 
> X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED
>       autolearn=ham version=3.2.4
> X-Envelope-From: address@hidden
> X-Envelope-To: <address@hidden>
> From: Andreas Schwab <address@hidden>
> To: Hermann Peifer <address@hidden>
> Cc: address@hidden, address@hidden,
>         Aharon Robbins <address@hidden>
> Subject: Re: WHINY_USERS=0
> X-Yow: You mean you don't want to watch WRESTLING from ATLANTA?
> Date: Mon, 26 Oct 2009 13:37:21 +0100
> Content-Type: text/plain; charset=us-ascii
> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17
>
> Hermann Peifer <address@hidden> writes:
>
> > $ gawk '1' somedir/ somefile
> > gawk: cmd. line:1: fatal: cannot open file `somedir/' for reading (Success)
>
> 2009-10-26  Andreas Schwab  <address@hidden>
>
>       * io.c (iop_open): Set errno when rejecting a directory.
>
> --- io.c.~1.25.~      2009-10-16 08:50:33.000000000 +0200
> +++ io.c      2009-10-26 13:26:52.000000000 +0100
> @@ -1673,6 +1673,8 @@ strictopen:
>                       if (isdir)
>                               *isdir = TRUE;
>                       (void) close(openfd);   /* don't leak fds */
> +                     /* Set useful error number.  */
> +                     errno = EISDIR;
>                       return NULL;
>               }
>       }
>
> Andreas.
>
> -- 
> Andreas Schwab, address@hidden
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]