* 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

@ -444,8 +444,6 @@ fhandler_socket::fstat (struct __stat64 *buf, path_conv *pc)
buf->st_dev = 0;
buf->st_ino = (ino_t) get_handle ();
buf->st_mode = S_IFSOCK | S_IRWXU | S_IRWXG | S_IRWXO;
buf->st_uid = geteuid32 ();
buf->st_gid = getegid32 ();
}
else
{