* 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.
This commit is contained in:
Corinna Vinschen
2003-04-01 17:17:46 +00:00
parent 31ee99a41e
commit 2d388e433f
4 changed files with 15 additions and 10 deletions

View File

@ -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);