diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-04-01 17:17:46 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-04-01 17:17:46 +0000 |
commit | 2d388e433f7ec42fe63bf1f8accc59895e5e34f8 (patch) | |
tree | bc2ecb14c42a874a14120f3a1ba298df96aec431 /winsup/cygwin/fhandler.cc | |
parent | 31ee99a41e8050038f346ad238e0955c52fd3f92 (diff) | |
download | cygnal-2d388e433f7ec42fe63bf1f8accc59895e5e34f8.tar.gz cygnal-2d388e433f7ec42fe63bf1f8accc59895e5e34f8.tar.bz2 cygnal-2d388e433f7ec42fe63bf1f8accc59895e5e34f8.zip |
* fhandler.cc (fhandler_base::fstat): Set the uid and gid fields
from the current effective ids.
* fhandler_socket.cc (fhandler_socket::fstat): Keep the uid and gid set
by fhandler_base::fstat.
* security.cc (get_nt_attribute): Do not test wincap.has_security ().
(get_nt_object_attribute): Ditto.
(get_file_attribute): Add test for wincap.has_security ().
(get_object_attribute): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index f4f43e308..bdbe2883d 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -981,6 +981,8 @@ fhandler_base::fstat (struct __stat64 *buf, path_conv *) break; } + buf->st_uid = geteuid32 (); + buf->st_gid = getegid32 (); buf->st_nlink = 1; buf->st_blksize = S_BLKSIZE; time_as_timestruc_t (&buf->st_ctim); |