* 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:
@ -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);
|
||||
|
Reference in New Issue
Block a user