Re: cvs: php4 /main streams.c
| From: | Yasuo Ohgaki | Date: | Tue, 29 Oct 2002 02:56:24 +0000 |
| Subject: | Re: cvs: php4 /main streams.c | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-90234@lists.php.net to get a copy of this message | ||
Wez Furlong wrote:
Hey Ilia, Does this prevent opening of things like block and character special files? If yes, then let's change it to explicitly check for directories instead, as there are bound to be people out there that want to open things like /dev/hda1 (for example).And named pipes, too? -- Yasuo Ohgaki
--Wez. On 28/10/02, "Ilia Alshanetsky" <ilia@prohost.org> wrote:Fixed bug #20110. + if (fstat(fileno(fp), &st) == -1 || !S_ISREG(st.st_mode)) {