summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_gzip.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-08-26 00:02:24 +0000
committerbde <bde@FreeBSD.org>1997-08-26 00:02:24 +0000
commit62b8e79acde300e000b3f764eb7ba8fda6df99a3 (patch)
treeef839b5ca108995586a36445403e5a5332131938 /sys/kern/imgact_gzip.c
parent9fb61aa49bb99cc873c18c0f341a2ac076a8146e (diff)
downloadFreeBSD-src-62b8e79acde300e000b3f764eb7ba8fda6df99a3.zip
FreeBSD-src-62b8e79acde300e000b3f764eb7ba8fda6df99a3.tar.gz
Removed redundant test against MAXDSIZ (the rlimit test is stronger).
Diffstat (limited to 'sys/kern/imgact_gzip.c')
-rw-r--r--sys/kern/imgact_gzip.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/imgact_gzip.c b/sys/kern/imgact_gzip.c
index e92db9b..7d7643e 100644
--- a/sys/kern/imgact_gzip.c
+++ b/sys/kern/imgact_gzip.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: imgact_gzip.c,v 1.28 1997/02/22 09:38:57 peter Exp $
+ * $Id: imgact_gzip.c,v 1.29 1997/04/13 01:48:22 dyson Exp $
*
* This module handles execution of a.out files which have been run through
* "gzip". This saves diskspace, but wastes cpu-cycles and VM.
@@ -204,9 +204,6 @@ do_aout_hdr(struct imgact_gzip * gz)
if ( /* text can't exceed maximum text size */
gz->a_out.a_text > MAXTSIZ ||
- /* data + bss can't exceed maximum data size */
- gz->a_out.a_data + gz->bss_size > MAXDSIZ ||
-
/* data + bss can't exceed rlimit */
gz->a_out.a_data + gz->bss_size >
gz->ip->proc->p_rlimit[RLIMIT_DATA].rlim_cur) {
OpenPOWER on IntegriCloud