]> git.ipfire.org Git - thirdparty/coreutils.git/commit
`tac /proc/modules' would print nothing
authorJim Meyering <jim@meyering.net>
Fri, 29 Oct 2004 21:55:15 +0000 (21:55 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 29 Oct 2004 21:55:15 +0000 (21:55 +0000)
commit259934f3a4daa1abbf92de5ee7c06bda72644aa1
tree627758d709c43e3ae3615b330fe9656b01dbd85a
parent7230399d890712d90a961a78bf247c35b178d9ab
`tac /proc/modules' would print nothing

(copy_to_temp): Renamed from save_stdin, since
now it copies a general file descriptor, not just stdin.
(tac_nonseekable): Renamed/adapted from tac_stdin.
(tac_file): Get fd via `open' directly rather than via fopen/fileno,
since we never used the stream.  Perform "-" to stdin mapping here
rather than in main.  Determine whether a file is seekable,
by trying to `lseek' to its end, and dispatch to tac_seekable or
tac_nonseekable accordingly.
(main): Rewrite argument handling now that it uses only tac_file.
Reported by Harald Dunkel in http://bugs.debian.org/278604.
src/tac.c