What version of ejabberd?

Hi to all.
I must apply a patch for ejabberd. The link of the patch is this:
https://support.process-one.net/browse/EJAB-418;jsessionid=DFD623FE52146...

and the name of the patch is: ejabberd_local_address.diff

I'd like to know what version of ejabberd I need for apply this patch.
Now I'm using:
ejabberd-2.0.2_2-linux-x86-installer.bin

is possible apply patch with this ejabberd version? or I need another version?

thanks in advance.
crystal

2.x should be fine

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.
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.

Yes, I understand it now. I

Yes, I understand it now.
I downloaded the source code and I do this:

I have copyed the patch ejabberd_local_address.diff in the directory src of ejabberd-2.0.2.
Now, I do:
patch -p2 <ejabberd_local_address.diff

and it do this:

patching file ejabberd.cfg.example
Hunk #1 succeded at 191 with fuzz 2 (offset 46 lines).
patching file ejabberd_config.erl
Hunk #1 succeded at 146 with fuzz 2 (offset 38 lines).
patching file ejabberd_s2s_out.erl
Hunk #1 FAILED at 180.
1 out of 1 hunk FAILED --saving rejects to file ejabberd_s2s_out.erl.rej
patching file win32/ejabberd.cfg
patch: **** malformed patch at line 86:

What do you think? have I patch all correctly?

Instead, if I do:
patch -p0 <ejabberd_local_address.diff
or
patch -p1 <ejabberd_local_address.diff

it say me:

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
---------------------------------
|diff --git a/src/ejabberd.cfg.example b/src/ejabberd.cfg.example
|index d03fb2d..8f17e76 100644
|--- a/src/ejabberd.cfg.example
|+++ b/src/ejabberd.cfg.example
---------------------------------
File to patch:

Thank you...
crystal

Syndicate content