<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">This is a patch to v0.51 that introduces a new configure time option<div>ALLOW_COREDUMPS<br><div>to allow coredumps from processes&nbsp;<div>started via dropbear server (and client)<div><br></div><div>It conditionally rolls back a change introduced around version 0.49</div><div>In some environments, coredumps are a very useful debugging tool.</div><div><br></div><div><div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 10px; ">&nbsp;Brent Roman<br>&nbsp;<a href="mailto:brent@mbari.org">mailto:brent@mbari.org</a>&nbsp;&nbsp;<a href="http://www.mbari.org/~brent">http://www.mbari.org/~brent</a></span></div></div></span> </div><br></div><div><br></div><div><div>--- dropbear-0.51-original/dbutil.c<span class="Apple-tab-span" style="white-space:pre">        </span>2008-10-27 15:31:08.000000000 -0700</div><div>+++ dropbear-0.51/dbutil.c<span class="Apple-tab-span" style="white-space:pre">        </span>2008-10-27 15:38:01.000000000 -0700</div><div>@@ -694,8 +694,10 @@</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>TRACE(("leave setnonblocking"))</div><div>&nbsp;}</div><div>&nbsp;</div><div>+#ifndef ALLOW_COREDUMPS</div><div>&nbsp;void disallow_core() {</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>struct rlimit lim;</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>lim.rlim_cur = lim.rlim_max = 0;</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>setrlimit(RLIMIT_CORE, &amp;lim);</div><div>&nbsp;}</div><div>+#endif</div><div>--- dropbear-0.51-original/dbutil.h<span class="Apple-tab-span" style="white-space:pre">        </span>2008-10-27 17:32:04.000000000 -0700</div><div>+++ dropbear-0.51/dbutil.h<span class="Apple-tab-span" style="white-space:pre">        </span>2008-10-27 17:32:43.000000000 -0700</div><div>@@ -63,7 +63,13 @@</div><div>&nbsp;void __m_free(void* ptr);</div><div>&nbsp;void m_burn(void* data, unsigned int len);</div><div>&nbsp;void setnonblocking(int fd);</div><div>+</div><div>+#ifdef ALLOW_COREDUMPS</div><div>+#define disallow_core()</div><div>+#else</div><div>&nbsp;void disallow_core();</div><div>+#endif</div><div>+</div><div>&nbsp;</div><div>&nbsp;/* Used to force mp_ints to be initialised */</div><div>&nbsp;#define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL}</div><div><br></div></div></div></div></div></div></body></html>