Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 470546586..d29aff028 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -2525,6 +2525,14 @@ restart:
{
fileattr = fdi_buf.fdi.FileAttributes;
memcpy (pfnoi, &fdi_buf.fdi.CreationTime, sizeof *pfnoi);
+ /* Amazing, but true: The FILE_NETWORK_OPEN_INFORMATION
+ structure has the AllocationSize and EndOfFile members
+ interchanged relative to the directory information
+ classes. */
+ pfnoi->AllocationSize.QuadPart
+ = fdi_buf.fdi.AllocationSize.QuadPart;
+ pfnoi->EndOfFile.QuadPart
+ = fdi_buf.fdi.EndOfFile.QuadPart;
}
}
ext_tacked_on = !!*ext_here;