[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
truly minor doesn't matter anyway patch
Just in case sunos ever gets around to enforcing read vs. exec protections:
*** ldb/sunos-os.c.~1~ Tue Mar 3 16:07:10 1992
--- ldb/sunos-os.c Tue Mar 3 16:06:04 1992
***************
*** 384,390 ****
real=(os_vm_address_t)
mmap((caddr_t)addr,
(long)len,
! sparse ? (is_readable ? PROT_READ : 0) : protection,
(addr==NULL? 0 : MAP_FIXED)|MAP_PRIVATE,
(is_readable || !sparse) ? map_fd : empty_fd,
(off_t)(offset==OFFSET_NONE ? 0 : offset));
--- 384,390 ----
real=(os_vm_address_t)
mmap((caddr_t)addr,
(long)len,
! sparse ? (is_readable ? PROT_READ|PROT_EXEC : 0) : protection,
(addr==NULL? 0 : MAP_FIXED)|MAP_PRIVATE,
(is_readable || !sparse) ? map_fd : empty_fd,
(off_t)(offset==OFFSET_NONE ? 0 : offset));
-Miles
--
Miles Bader -- HCRC, University of Edinburgh -- miles@cogsci.ed.ac.uk
Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.
97% of everything is grunge