patch command question

From: Glenn Schmid (glenn.schmid@sunysb.edu)
Date: Fri Nov 15 2002 - 11:15:41 EST


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
@@ -78,7 +78,7 @@
  */

        /* 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



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:59 EDT