Bug 10420

Summary: tail -f crashes on directories
Product: [Retired] Red Hat Linux Reporter: Joshua Jensen <joshua>
Component: textutilsAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: dr, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-04-06 14:21:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joshua Jensen 2000-03-29 19:34:43 UTC
tail -f /etc/sysctl.conf /etc/sysconfig/*

==> /etc/sysconfig/static-routes <==

tail: tail.c:718: recheck: Assertion `valid_file_spec (f)' failed.
Aborted (core
dumped)

[root@localhost /root]# file /etc/sysconfig/static-routes
/etc/sysconfig/static-routes: EMPTY file

Then I used pico to put one blank line into the file

/etc/sysconfig/static-routes:   ASCII text

tail still crashes.  It shouldn't do this for an emtpy file, esp. after
I tell it that it is an ASCII text file with a blank line.

Joshua

Comment 1 Tim Waugh 2000-04-06 13:58:59 UTC
Here's a smaller test case that demonstrates the real problem:

tail -f /

Comment 2 Tim Waugh 2000-04-06 14:21:59 UTC
This is fixed in <URL:ftp://alpha.gnu.org/gnu/fetish/textutils-2.0e.tar.gz>.