[PATCH] readdir (): Do not set 'errno' if end of dir is encountered

Pavel Tsekov ptsekov@gmx.net
Tue Aug 5 02:49:00 GMT 2003


Hello,

Attached is a patch + a testcase. The testcase can be executed with any of
the
following directories:

  /cygdrive
  /proc
  /proc/<PID>
  /proc/registry/HKEY_WHATEVER

2003-08-05  Pavel Tsekov  <ptsekov@gmx.net>

	* fhandler_disk_file.cc (fhandler_cygdrive::readdir): Do not change 'errno'
if
	end of directory condition is encountered as per SUSv2.
	* fhandler_proc.cc (fhandler_proc::readdir): Ditto.
	* fhandler_process (fhandler_process::readdir): Ditto.
	* fhandler_registry (fhandler_registry::readdir): Ditto.

Pavel

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scandir.c
Type: application/octet-stream
Size: 340 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030805/f9c54d7f/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: readdir.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030805/f9c54d7f/attachment.ksh>


More information about the Cygwin-patches mailing list