Bug 57426 - tcsh has problem globbling large files
Summary: tcsh has problem globbling large files
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tcsh
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-12-12 06:05 UTC by Pat Kane
Modified: 2007-04-18 16:38 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-02-06 20:10:37 UTC
Embargoed:


Attachments (Terms of Use)

Description Pat Kane 2001-12-12 06:05:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.16-0.5 i686)

Description of problem:
tcsh can does not glob large files correctly

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
  date > x
  dd if=x of=x1 seek=1M
  dd if=x of=x5 seek=5M

   tcsh:   ls -l  x*

	

Actual Results:   -rw-rw-rw-    1 foo     bar          29 Dec 11 23:58 x
 -rw-rw-rw-    1 foo     bar     536870941 Dec 11 23:58 x1


Expected Results:  -rw-rw-rw-    1 foo       bar           29 Dec 11 23:58
x
-rw-rw-rw-    1 foo       bar     536870941 Dec 11 23:58 x1
-rw-rw-rw-    1 foo       bar    2684354589 Dec 11 23:58 x5


Additional info:

Comment 1 Need Real Name 2002-05-10 23:30:51 UTC
I have seen this bug also. 

I resolved it by compiling with the following options: 
	 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE

This was added to the CCFLAGS= line of the Makefile.

I installed the source rpm for tcsh.
Then installed each patch (for version 6.10)
then ran the configure script.
Then edited the Makefile to add the above definitions.

make
make install

cd /bin
rm tcsh
ln -s /usr/local/bin/tcsh tcsh

Note: The src rpm configure file has the make install place the tcsh executable
into /usr/local/bin.

Hope you find this useful. And we get an updated rpm soon.

Comment 2 Jeremy Sanders 2002-10-08 11:18:59 UTC
This appears fixed on RedHat 8.0 (but not 7.3). Close?


Comment 3 Bill Nottingham 2003-02-06 20:10:37 UTC
Yup.


Note You need to log in before you can comment on or make changes to this bug.