[dev] patching

Etienne Goyer etienne.goyer at linuxquebec.com
Fri May 14 08:54:26 PDT 2004


Ben Chavet wrote:
> I apologize if this is off-topic...
> 
> When a patch comes in, how do you apply it?  I've tried "patch original-file
> patch-file" and "patch -u original-file patch-file".  Sometimes it works, but
> usually it doesn't.  Am I missing something?  Can somebody give me some tips?

Usually, you would do :

     patch -p0 < patchfile

You do not have to specify the file to be patched (it's in the patch). 
Depending on how the patch was produced, you might have to specify "-p1" 
instead.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.horde.org/archives/dev/attachments/20040514/ba3512ee/signature.bin


More information about the dev mailing list