(init_user_info): Use the above two new functions to retrieve uid
and gid. Use 500/513, the Windows defaults, as Administrator's
uid/gid.
+ (fstat): Use pw_uid and pw_gid from the_passwd structure for
+ st_uid and st_gid of the file.
2008-01-26 Jason Rumney <jasonr@gnu.org>
buf->st_ino = fake_inode;
/* consider files to belong to current user */
- buf->st_uid = 0;
- buf->st_gid = 0;
+ buf->st_uid = the_passwd.pw_uid;
+ buf->st_gid = the_passwd.pw_gid;
buf->st_dev = info.dwVolumeSerialNumber;
buf->st_rdev = info.dwVolumeSerialNumber;