Create wrapper pgwin32_safestat() and redefine stat() to it

Magnus Hagander <magnus@hagander.net>

Commit: 47a19a495d89e00fd98ad7139beb0dbecedca353
Author: Magnus Hagander <magnus@hagander.net>
Date: 2008-04-10T16:58:51Z
Releases: 8.4.0
Create wrapper pgwin32_safestat() and redefine stat() to it
on win32, because the stat() function in the runtime cannot
be trusted to always update the st_size field.

Per report and research by Sergey Zubkovsky.

Files

PathChange+/−
src/include/port.h modified +14 −1
src/port/dirmod.c modified +35 −1