Main Page | Report this Page
Linux Forum Index  »  Linux Development  »  Need help creating a patch...
Page 1 of 1    

Need help creating a patch...

Author Message
David...
Posted: Sat Apr 25, 2009 6:30 pm
Guest
Greetings-
I like to create the patch discussed below:
Quote:
# diff -ubB spo_database.c.orig spo_database.c
--- spo_database.c.orig 2009-04-13 16:03:49.000000000 +0200
+++ spo_database.c 2009-04-13 15:59:53.000000000 +0200
-2798,6 +2798,14
{
result = atoi(data->m_row[0]);
}
+ else
+ {
+ result = 0;
+ }
+ }
+ else
+ {
+ result = 0;
}
}
mysql_free_result(data->m_result);

I simply return 0 (false) if the query was technically successfull,
but no
result was found.

Also worked for me, thanks!
*****************************************************************************


I read some tutorials on patch but I get the following error:

root at (no spam) thunder:/usr/local/src/snort-2.8.3.2/src/output-plugins# vi
spopatch.patch
root at (no spam) thunder:/usr/local/src/snort-2.8.3.2/src/output-plugins# patch <
spopatch.patch
patch: **** Only garbage was found in the patch input.
root at (no spam) thunder:/usr/local/src/snort-2.8.3.2/src/output-plugins# ls patch
ls: cannot access patch: No such file or directory
root at (no spam) thunder:/usr/local/src/snort-2.8.3.2/src/output-plugins#
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Tue Nov 24, 2009 9:04 am