Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By mbull on
Hi
I'm trying to apply a module patch using SSH.
When I enter the following command:
patch < htdocs / module / smtp / smtp.module.patch
I keep getting the following message:
patch: /: extra operand
patch: Try `patch --help' for more information.
I'm brand new to ssh. Can anyone help?
Comments
You may read :
You may read : http://drupal.org/patch/apply
Don't leave space betwen /, it's a path, no space allowed.
htdocs/module/smtp/smtp.module.patch
Excellent
Ok. Thank you. I've read loads of stuff and managed to get thus far.
I've just taken your first piece of advice and had the following results:
missing header for unified diff at line 8 of patch
(Stripping trailing CRs from patch.)
can't find file to patch at input line 8
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|
|
|
|
|
|
Provided that the patch was
Assuming you got a smtp.module file at the current directory, try
@@ -2,9 +2,5 @@
It seems that any reference to anything within @@ @@ comes back as an unknown file path.
Should I be replacing (for example @@ -2,9 +2,5 @@) with the file name or is it referencing another piece of Drupal coding elsewhere?
command not found
I am a newbie.. trying to patch the kwresearch module via a secure shell... I have uploaded the patch file directly to the kwresearch module directory, but without fail.. all I get is command not found:
patch < kwresearch.module.patch
any idea what I am doing wrong?
mickey
It sounds like the patch
It sounds like the patch command is not installed on your system. Contact your hosts and ask them.