linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.4.26-pre4] 2 Gb Core Files
@ 2004-03-17 18:21 Terry Loftin
  0 siblings, 0 replies; only message in thread
From: Terry Loftin @ 2004-03-17 18:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, marcelo.tosatti


Please apply. This patch allows core files larger than 2GB.
This is just Andrew Morton's 2.6.x patch backported to 2.4.26-pre
source.  TIA.

diff -Nu linux-2.4/fs/exec.c linux-2.4_core/fs/exec.c
--- linux-2.4/fs/exec.c	Mon Mar 15 10:57:07 2004
+++ linux-2.4_core/fs/exec.c	Mon Mar 15 10:59:48 2004
@@ -1126,7 +1126,7 @@
 		goto fail;
 
  	format_corename(corename, core_pattern, signr);
-	file = filp_open(corename, O_CREAT | 2 | O_NOFOLLOW, 0600);
+	file = filp_open(corename, O_CREAT | 2 | O_NOFOLLOW | O_LARGEFILE, 0600);
 	if (IS_ERR(file))
 		goto fail;
 	inode = file->f_dentry->d_inode;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-17 18:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-17 18:21 [PATCH 2.4.26-pre4] 2 Gb Core Files Terry Loftin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).