Article View: comp.sources.bugs
Article #590less A B >C dumps core
From: Paul Eggert
Date: Tue, 15 Jan 1991 01:45
Date: Tue, 15 Jan 1991 01:45
32 lines
1326 bytes
1326 bytes
The command less A B >C dumps core if the files A and B are readable. Here is a patch to less version 109 (plus previous patches already reported). I tried to email this to less's author, Mark Nudelman <convergent.com!UNIX386!mark>, but got no acknowledgment. =================================================================== RCS file: RCS/main.c,v retrieving revision 1.4 diff -c -r1.4 main.c *** 1.4 1989/05/30 11:09:34 --- main.c 1991/01/03 20:42:50 *************** *** 136,142 **** free(previous_file); previous_file = current_file; current_file = filename; ! if (previous_file != NULL) prev_pos = position(TOP); ispipe = (f == 0); if (ispipe) --- 136,142 ---- free(previous_file); previous_file = current_file; current_file = filename; ! if (previous_file != NULL && is_tty) prev_pos = position(TOP); ispipe = (f == 0); if (ispipe)
Technical Details
Message-ID:
<1991Jan15.014552.5476@twinsun.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod!usc!ucla-cs!twinsun!eggertShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod!usc!ucla-cs!twinsun!eggert From: eggert@twinsun.com (Paul Eggert) Newsgroups: comp.sources.bugs Subject: less A B >C dumps core Message-ID: <1991Jan15.014552.5476@twinsun.com> Date: 15 Jan 91 01:45:52 GMT Sender: news@twinsun.com Organization: Twin Sun, Inc Lines: 32 Originator: eggert@ata Nntp-Posting-Host: ata