------- Additional Comments From tkoenig at gcc dot gnu dot org 2005-07-10 22:18 ------- The comments in fd_truncate (line 505 ff. in unix.c) read
if (lseek (s->fd, s->logical_offset, SEEK_SET) == -1) return FAILURE; /* non-seekable files, like terminals and fifo's fail the lseek. the fd is a regular file at this point */ This is clearly wrong for a lot of systems, and needs to be fixed. This will also fix the /dev/null readback failure. I'll tackle this. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |tkoenig at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2005-06-18 08:44:51 |2005-07-10 22:18:42 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21593