diff options
author | Bruce Evans <bde@FreeBSD.org> | 1997-08-26 00:02:24 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1997-08-26 00:02:24 +0000 |
commit | 282ec22c77c3f31f8635c197b0c34ed0abce7b15 (patch) | |
tree | 54210c0b2b07abaae651020a451d4c2d4471721a /sys/kern/imgact_aout.c | |
parent | 25ec9b1615c3dd29e514dfa97eee9d95cc7bdb11 (diff) | |
download | src-282ec22c77c3f31f8635c197b0c34ed0abce7b15.tar.gz src-282ec22c77c3f31f8635c197b0c34ed0abce7b15.zip |
Removed redundant test against MAXDSIZ (the rlimit test is stronger).
Notes
Notes:
svn path=/head/; revision=28765
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r-- | sys/kern/imgact_aout.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index a229720b1d00..4c96903ba4de 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) |