# HG changeset patch # User Eli Zaretskii # Date 1201361074 0 # Node ID 26fe370dfb798db7d67d0632b4256f2a95668c86 # Parent 3ef9b6e3d2fa74fce65f37b8580af8a7ac18043c (fstat): Use pw_uid and pw_gid from the_passwd structure for st_uid and st_gid of the file. diff -r 3ef9b6e3d2fa -r 26fe370dfb79 src/w32.c --- 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;