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

Magnus Hagander <magnus@hagander.net>

Commit: 6c1dbc5ec1b101964b895596526dab92fac6cacc
Author: Magnus Hagander <magnus@hagander.net>
Date: 2008-04-10T16:59:42Z
Releases: 8.2.8
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