On Wed, Jun 13, 2012 at 12:19:11AM +0800, Feel Zhou wrote: > Hi Wietse > > [root@relay smtp]# patch < smtp_trouble.c.patch > patching file smtp_trouble.c > Hunk #2 FAILED at 191. > Hunk #3 FAILED at 198. > Hunk #4 FAILED at 246. > Hunk #5 FAILED at 355. > Hunk #6 FAILED at 370. > Hunk #7 FAILED at 379. > 6 out of 7 hunks FAILED -- saving rejects to file smtp_trouble.c.rej > > What is the problem with this? I do it twice, still happen, Maybe I'm not > so clever. Help me.
When applying patches, the patch must *exactly* match posted file including white-space (spaces, tabs, ...) You probably copied the patch from the email message via cut/paste, and changed the white-space. You need to save the message to the patch file exactly as posted. -- Viktor.