Create wrapper pgwin32_safestat() and redefine stat() to it
authorMagnus Hagander <magnus@hagander.net>
Thu, 10 Apr 2008 16:59:42 +0000 (16:59 +0000)
committerMagnus Hagander <magnus@hagander.net>
Thu, 10 Apr 2008 16:59:42 +0000 (16:59 +0000)
commita32bc36a66a92b94fdef509ba8f17dac4f14f525
tree96f8a1f26233bb595748722a026d4a31300a186b
parentf9292f2ed1ae377a705be1a5a129778194dfbc92
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.
src/include/port.h
src/port/dirmod.c