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