[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WHINY_USERS=0
From: |
Andreas Schwab |
Subject: |
Re: WHINY_USERS=0 |
Date: |
Mon, 26 Oct 2009 13:37:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
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."
Re: WHINY_USERS=0, Aharon Robbins, 2009/10/30