Thanks to Arrigo, Harald, Tru64user and Tim.
The consensus was:
=-=-=-=
That's a unified diff. Normal Tru64 patch doesn't understand it. You
need to download and install GNU patch. (and diff while you're about
it, since GNU unified diffs are much easier to read than normal context
diffs!)
=-=-=-=
I've downloaded the GNU patch and have already patched
two of my name servers.
HP: How about incorporating an updated 'patch' command into 5.2? :-)
Thanx again
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Original post:
I'm trying to apply the patches to my BIND 8.3.3 source code from
<
http://www.isc.org/products/BIND/patches/bind833.diff>
I've never used the 'patch' command before, but the man page for it
makes it seem as though it will accept the patches from the above
diff file and apply them.
As a test, I took one of the patches and placed it in a file and did the
following:
# patch -b -i db_defs_patch.txt
Hmm... I can't seem to find a patch in there anywhere.
The file it was supposed to patch (db_defs.h) was located in the same
directory. The man page said that if the "Index:" was in the patch file,
then it would know which file to patch, so I figured I didn't need to
supply it as a parameter to 'patch'.
Have I forgottten a flag or can anyone spot my mistake?
the contents of my db_defs_patch.txt file are:
Index: bin/named/db_defs.h
===================================================================
RCS file: /proj/cvs/isc/bind8/src/bin/named/db_defs.h,v
retrieving revision 8.47
diff -u -r8.47 db_defs.h
--- bin/named/db_defs.h 18 May 2002 01:02:53 -0000 8.47
+++ bin/named/db_defs.h 30 Oct 2002 11:16:06 -0000
_at__at_ -78,7 +78,7 _at__at_
*/
/* max length of data in RR data field */
-#define MAXDATA (2*MAXDNAME + 5*INT32SZ)
+#define MAXDATA (3*MAXDNAME + 5*INT32SZ)
/* max length of data in a TXT RR segment */
#define MAXCHARSTRING 255
Thanks a lot
Received on Fri Nov 15 2002 - 19:05:59 NZDT