From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Glenn Schmid Newsgroups: gmane.os.tru64.managers Subject: patch command question Date: Fri, 15 Nov 2002 11:15:41 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037376866 2226 80.91.224.249 (15 Nov 2002 16:14:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 15 Nov 2002 16:14:26 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18Cj6q-0000YW-00 for ; Fri, 15 Nov 2002 17:14:20 +0100 Original-Received: (qmail 1627 invoked by uid 5); 15 Nov 2002 16:15:47 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 1618 invoked by uid 49493); 15 Nov 2002 16:15:47 -0000 Original-Received: from glenn.schmid@sunysb.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(0.0/5.0):. Processed in 0.417165 secs); 15 Nov 2002 16:15:47 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 15 Nov 2002 16:15:47 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5M0078PL6AZN@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 15 Nov 2002 11:15:46 -0500 (EST) Original-Received: from nmta.cc.sunysb.edu (nmta.cc.stonybrook.edu [129.49.2.77]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5M00D8HL66LP@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 15 Nov 2002 11:15:43 -0500 (EST) Original-To: tru64-unix-managers@ornl.gov X-Mailer: Lotus Notes Release 5.0.4a July 24, 2000 X-MIMETrack: Serialize by Router on nmta.cc.sunysb.edu/DoIT(Release 5.0.11 |July 24, 2002) at 11/15/2002 11:15:43 AM Xref: main.gmane.org gmane.os.tru64.managers:2461 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2461 I'm trying to apply the patches to my BIND 8.3.3 source code from 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