* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always set

st_[ug]id to value derived from get_file_attributes.
This commit is contained in:
Christopher Faylor 2002-03-22 04:27:52 +00:00
parent 45d2ea8a52
commit 2f3126f6ec
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-03-21 Christopher Faylor <cgf@redhat.com>
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always set
st_[ug]id to value derived from get_file_attributes.
2002-03-21 Christopher Faylor <cgf@redhat.com>
* spawn.cc (find_exec): Return input if file not found.

View File

@ -281,9 +281,6 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf)
if (!(buf->st_mode & S_IFMT))
buf->st_mode |= S_IFREG;
buf->st_uid = uid;
buf->st_gid = gid;
}
else
{
@ -338,6 +335,9 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf)
}
}
buf->st_uid = uid;
buf->st_gid = gid;
syscall_printf ("0 = fstat (, %p) st_atime=%x st_size=%D, st_mode=%p, st_ino=%d, sizeof=%d",
buf, buf->st_atime, buf->st_size, buf->st_mode,
(int) buf->st_ino, sizeof (*buf));