ejabberd - Comments for "What version of ejabberd?" https://www.ejabberd.im/node/3316 en Yes, I understand it now. I https://www.ejabberd.im/node/3316#comment-53860 <p>Yes, I understand it now.<br /> I downloaded the source code and I do this:</p> <p>I have copyed the patch ejabberd_local_address.diff in the directory src of ejabberd-2.0.2.<br /> Now, I do:<br /> <code>patch -p2 &lt;ejabberd_local_address.diff</code></p> <p>and it do this:</p> <div class="codeblock"><code>patching file ejabberd.cfg.example<br />Hunk #1 succeded at 191 with fuzz 2 (offset 46 lines).<br />patching file ejabberd_config.erl<br />Hunk #1 succeded at 146 with fuzz 2 (offset 38 lines).<br />patching file ejabberd_s2s_out.erl<br />Hunk #1 FAILED at 180.<br />1 out of 1 hunk FAILED --saving rejects to file ejabberd_s2s_out.erl.rej<br />patching file win32/ejabberd.cfg<br />patch: **** malformed patch at line 86:</code></div> <p>What do you think? have I patch all correctly?</p> <p>Instead, if I do:<br /> <code>patch -p0 &lt;ejabberd_local_address.diff</code><br /> or<br /> <code>patch -p1 &lt;ejabberd_local_address.diff</code></p> <p>it say me:</p> <div class="codeblock"><code>can&#039;t find file to patch at input line 5<br />Perhaps you used the wrong -p or --strip option?<br />The text leading up to this was:<br />---------------------------------<br />|diff --git a/src/ejabberd.cfg.example b/src/ejabberd.cfg.example<br />|index d03fb2d..8f17e76 100644<br />|--- a/src/ejabberd.cfg.example<br />|+++ b/src/ejabberd.cfg.example<br />---------------------------------<br />File to patch:</code></div> <p>Thank you...<br /> crystal</p> Fri, 19 Dec 2008 11:22:29 +0000 crystal comment 53860 at https://www.ejabberd.im 2.x should be fine https://www.ejabberd.im/node/3316#comment-53859 <p>Based on the notes the patch was only for 1.1.4 so I'm assuming that it would have been resolved for 2.x.<br /> If you did want to apply the patch you would need to download the source (either tarballs or through the SVN) and apply it from there.</p> Fri, 19 Dec 2008 10:40:05 +0000 tlaramie comment 53859 at https://www.ejabberd.im