diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2004-07-15 06:57:36 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2004-07-15 06:57:36 +0000 |
| commit | c7fcd3025b5ae81264c1878e0eae4438872cfc67 (patch) | |
| tree | 37a3ecb066975dc533b2907f6f0cb03dcf23353a /usr.bin | |
| parent | d1573e584196bd909a5db803f2b01ef9296a3c42 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/colcrt/colcrt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/colcrt/colcrt.c b/usr.bin/colcrt/colcrt.c index 5d7fd15afc91b..2f0bce35a5162 100644 --- a/usr.bin/colcrt/colcrt.c +++ b/usr.bin/colcrt/colcrt.c @@ -103,8 +103,7 @@ main(int argc, char *argv[]) do { if (argc > 0) { - close(0); - if (!(f = fopen(argv[0], "r"))) { + if (!(f = freopen(argv[0], "r", stdin))) { fflush(stdout); err(1, "%s", argv[0]); } |
