changeset 87999:26fe370dfb79

(fstat): Use pw_uid and pw_gid from the_passwd structure for st_uid and st_gid of the file.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 26 Jan 2008 15:24:34 +0000
parents 3ef9b6e3d2fa
children 688503d596f9
files src/w32.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32.c	Sat Jan 26 15:04:33 2008 +0000
+++ b/src/w32.c	Sat Jan 26 15:24:34 2008 +0000
@@ -2768,8 +2768,8 @@
     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;