Hi

I had some problems when applying patch http://drupal.org/files/sa-2006-002/4.6.5.patch on my 4.6.5 drupal installation.
All others patches worked well.

output :

patching file includes/common.inc
Hunk #1 FAILED at 884.
Hunk #2 FAILED at 893.
2 out of 2 hunks FAILED -- saving rejects to file includes/common.inc.rej
patching file modules/book.module
Hunk #1 FAILED at 417.
1 out of 1 hunk FAILED -- saving rejects to file modules/book.module.rej
patching file themes/engines/xtemplate/xtemplate.engine
Hunk #1 FAILED at 183.
1 out of 1 hunk FAILED -- saving rejects to file themes/engines/xtemplate/xtemplate.engine.rej

So I take a look with 'file' command on the patch :
output :ASCII C++ program text, with CRLF line terminators

I'm on linux...
I do a 'dos2linux' on the patch, then reapply it : now it works...

Hope it helps
Regards

Fred

Comments

artem_sokolov’s picture

Your infomation helped me after I got confused with the failure of the patch.
I used 'col -b' command to remove DOS-style returns and it worked.