Bug 59612 - tee does not open its outputfile with O_LARGEFILE
Summary: tee does not open its outputfile with O_LARGEFILE
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: sh-utils
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-02-11 09:05 UTC by Jan Christiaan van Winkel
Modified: 2007-04-18 16:40 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-02-11 09:05:09 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Christiaan van Winkel 2002-02-11 09:05:03 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.79 [en] (X11; U; SunOS 5.8 sun4u; Nav)

Description of problem:
tee does not open its outputfile with O_LARGEFILE.  It is the only command I
have seen that has this behavior.
The behavior can easily be verified with:
date | strace -eopen -f sh -c 'tee bytee > bysh'
The relevant output is:
[cut]
[pid 17444] open("bysh", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
[cut]
[pid 17444] open("bytee", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
The shell correctly opens the file with O_LARGEFILE.
Other utilities, such as uniq and sort not not have the bad behavior


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


How reproducible:
Always

Steps to Reproduce:
1. date | strace -eopen -f sh 'tee bytee > bysh'
2.
3.
	

Actual Results:  strace shows the file created by tee is not opend with
O_LARGEFILE
Files opend by the shell *are* opened with O_LARGEFILE.  This the open file
cannot be larger than 2 GB

Expected Results:  The file should have been opened with O_LARGEFILE.  Files
created by tee should be able to grow beyond the 2G border

Additional info:

Comment 1 Bernhard Rosenkraenzer 2002-02-12 15:34:23 UTC
True, fixed in 2.0.11-10 



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