Bugzilla – Attachment 64 Details for
Bug 205
PrivSep needs to be a compile-time option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
allow non-mmap platforms to compile
privsep.patch (text/plain), 837 bytes, created by
Ben Lindstrom
on 2002-04-07 10:28:27 AEST
(
hide
)
Description:
allow non-mmap platforms to compile
Filename:
MIME Type:
Creator:
Ben Lindstrom
Created:
2002-04-07 10:28:27 AEST
Size:
837 bytes
patch
obsolete
>diff -u openssh/monitor_mm.c nextssh/monitor_mm.c >--- openssh/monitor_mm.c Mon Mar 25 21:20:46 2002 >+++ nextssh/monitor_mm.c Sat Apr 6 16:45:07 2002 >@@ -67,6 +67,7 @@ > struct mm_master * > mm_create(struct mm_master *mmalloc, size_t size) > { >+#ifdef HAVE_MMAP > void *address; > struct mm_master *mm; > >@@ -96,6 +97,12 @@ > mm_make_entry(mm, &mm->rb_free, address, size); > > return (mm); >+#else >+ fatal("Privsep should be turned off on your platform due to lack of mmap"); >+ >+ /* NOTREACHED */ >+ return NULL; >+#endif > } > > /* Frees either the allocated or the free list */ >@@ -120,6 +127,7 @@ > void > mm_destroy(struct mm_master *mm) > { >+#ifdef HAVE_MMAP > mm_freelist(mm->mmalloc, &mm->rb_free); > mm_freelist(mm->mmalloc, &mm->rb_allocated); > >@@ -129,6 +137,7 @@ > xfree(mm); > else > mm_free(mm->mmalloc, mm); >+#endif > } > > void *
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205
: 64