summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_aout.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_aout.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_aout.c')
-rw-r--r--sys/kern/imgact_aout.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
index a229720..4c96903 100644
--- a/sys/kern/imgact_aout.c
+++ b/sys/kern/imgact_aout.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: imgact_aout.c,v 1.33 1997/02/22 09:38:55 peter Exp $
+ * $Id: imgact_aout.c,v 1.34 1997/04/13 01:48:21 dyson Exp $
*/
#include "opt_rlimit.h"
@@ -128,9 +128,6 @@ exec_aout_imgact(imgp)
if (/* text can't exceed maximum text size */
a_out->a_text > MAXTSIZ ||
- /* data + bss can't exceed maximum data size */
- a_out->a_data + bss_size > MAXDSIZ ||
-
/* data + bss can't exceed rlimit */
a_out->a_data + bss_size >
imgp->proc->p_rlimit[RLIMIT_DATA].rlim_cur)
OpenPOWER on IntegriCloud