Create wrapper pgwin32_safestat() and redefine stat() to it
Magnus Hagander <magnus@hagander.net>
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
| Path | Change | +/− |
|---|---|---|
| src/include/port.h | modified | +14 −1 |
| src/port/dirmod.c | modified | +35 −1 |