Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.

Bug 67662

Summary: pdksh does not properly open files during I/O redirection to files to take advantage of >2GB files
Product: [Retired] Red Hat Linux Reporter: Craig Dawson <craig.dawson>
Component: pdkshAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-06-28 13:55:19 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Craig Dawson 2002-06-28 13:55:15 EDT
Description of Problem:

When running the ksh shell, redirecting output to a file that is >2GB will fail
with the following text:

echo "test" >> /tmp/largefile.out
ksh: cannot create /tmp/largefile.out: File too large

When using bash, the same operation works fine.

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

5.2.14-13

How Reproducible:

Try and create a file that is greater than 2GB

cat /dev/zero > /tmp/largefile.out

- will fail with "File size limit exceeded"

Actual Results:


Resulting file size will be:

-rw-r--r--    1 root     sys      2147483647 Jun 28 13:48 largefile.out

Expected Results:

File should be able to grow beyond 2GB in size.

Additional Information:
	
A solution that I have found is to compile the pdksh source using the following
gcc flags:

-D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE 

Doing this will allow ksh to redirect output to greater than 2GB files without
any problems.
Comment 1 Trond Eivind Glomsrxd 2002-06-28 14:28:57 EDT
Added in pdksh-5.2.14-19