diff options
author | peter <peter@FreeBSD.org> | 1997-03-31 16:43:16 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-03-31 16:43:16 +0000 |
commit | 3e63a14f34ec33ecb046158328122a09db58c4d7 (patch) | |
tree | 52c98843ab1e298b7a62b6ceba0975a13513c1d6 /usr.bin/shar | |
parent | 1cce6194df5fbb55819ef53aa95268ae54061b13 (diff) | |
download | FreeBSD-src-3e63a14f34ec33ecb046158328122a09db58c4d7.zip FreeBSD-src-3e63a14f34ec33ecb046158328122a09db58c4d7.tar.gz |
Fix the mount_mfs case from the last cleanup. The code was (ab)using
it's internal malloc() implementation to try and avoid overstepping it's
resource limits (yuk!). Remain using libc's malloc(), but check the
resource limits right before trying to malloc the ramdisk space and leave
some spare memory for libc. In Andrey's words, the internal malloc
was "true evil".. Among it's sins is it's ability to allocate less memory
than asked for and still return success. stdio would just love that. :-)
Reviewed by: ache
Diffstat (limited to 'usr.bin/shar')
0 files changed, 0 insertions, 0 deletions