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:
authorChristopher Faylor <me@cgf.cx>2002-03-22 07:27:52 +0300
committerChristopher Faylor <me@cgf.cx>2002-03-22 07:27:52 +0300
commit2f3126f6eca3a094336e0192fb09d0d75325ee0f (patch)
treee405d6e3afed343bb4c92fee92ee62544911067a /winsup/cygwin/fhandler_disk_file.cc
parent45d2ea8a52d1cd9d50ca7029a70da413e522932e (diff)
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always set
st_[ug]id to value derived from get_file_attributes.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index c251ed3cf..151b8ae42 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -281,9 +281,6 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf)
if (!(buf->st_mode & S_IFMT))
buf->st_mode |= S_IFREG;
-
- buf->st_uid = uid;
- buf->st_gid = gid;
}
else
{
@@ -338,6 +335,9 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf)
}
}
+ buf->st_uid = uid;
+ buf->st_gid = gid;
+
syscall_printf ("0 = fstat (, %p) st_atime=%x st_size=%D, st_mode=%p, st_ino=%d, sizeof=%d",
buf, buf->st_atime, buf->st_size, buf->st_mode,
(int) buf->st_ino, sizeof (*buf));