Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Mon, 16 Apr 2001 09:57:51 -0400 From: Jason Tishler To: Louis Bohm Cc: Cygwin Subject: Re: RCS 5.7 Patches Message-ID: <20010416095750.D275@dothill.com> Mail-Followup-To: Louis Bohm , Cygwin References: <3ADAE50C DOT CB5547D0 AT lightbridge DOT com> <20010416085454 DOT A275 AT dothill DOT com> <3ADAF003 DOT 4460B1DF AT lightbridge DOT com> <20010416091800 DOT B275 AT dothill DOT com> <3ADAF38C DOT 5FDF13D1 AT lightbridge DOT com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Kz6r+RJ2JTRUF8hL" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3ADAF38C.5FDF13D1@lightbridge.com>; from lbohm@lightbridge.com on Mon, Apr 16, 2001 at 09:28:45AM -0400 Organization: Dot Hill Systems Corp. --Kz6r+RJ2JTRUF8hL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Louis, On Mon, Apr 16, 2001 at 09:28:45AM -0400, Louis Bohm wrote: > I do not believe there are CR's at the end. When I pulled it up in vi I did > not see anything. I even ftped it to a solaris box and pulled it up in vi and > did not see anything. > > Is there a better way I can check for CR's. Try file or od -c. I just saved the patch from: http://sources.redhat.com/ml/cygwin/2000-10/msg00545.html by copying and pasting from Netscape into (GUI) Vim. Note that the file created by this procedure *had* CRs: $ file foo.patch foo.patch: ASCII English text, with CRLF line terminators $ dos2unix foo.patch $ file foo.patch foo.patch: ASCII English text I've attached foo.patch for your convenience. Jason -- Jason Tishler Director, Software Engineering Phone: +1 (732) 264-8770 x235 Dot Hill Systems Corp. Fax: +1 (732) 264-8798 82 Bethany Road, Suite 7 Email: Jason DOT Tishler AT dothill DOT com Hazlet, NJ 07730 USA WWW: http://www.dothill.com --Kz6r+RJ2JTRUF8hL Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="foo.patch" # patches rcs-5.7 to work with cygwin b19/20/20.1 # doesn't break the configure script for other systems # To apply: cd rcs-5.7 ; patch -p 1 -i rcs-5.7-cygwinb20.patchb diff -rc rcs-5.7/src/conf.sh rcs-5.7-good/src/conf.sh *** rcs-5.7/src/conf.sh Mon Nov 15 07:17:49 1999 --- rcs-5.7-good/src/conf.sh Mon Nov 15 08:49:40 1999 *************** *** 311,325 **** # We must do has_readlink next, because it might generate # #include directives that affect later definitions. ! $ech >&3 "$0: configuring has_readlink, readlink_isreg_errno $dots" cat >a.c <&3 "$0: configuring has_readlink, readlink_isreg_errno, bad_readlink_enoent $dots" cat >a.c <&3 $h, $readlink_isreg_errno cat <&3 $h, $readlink_isreg_errno, $bh cat <&3 $has_map_fd, $has_mmap, $has_madvise, $mmap_signal --- 1071,1077 ---- # when someone unexpectedly truncates a file # while RCS has it mmapped. rm -f a.e && cp a.c a.e && ! mmap_signal=`$aout a.e &3 $has_map_fd, $has_mmap, $has_madvise, $mmap_signal *************** *** 1103,1108 **** --- 1121,1151 ---- echo "#define bad_a_rename $a /* Does rename(A,B) fail if A is unwritable? */" echo "#define bad_b_rename $b /* Does rename(A,B) fail if B is unwritable? */" echo "#define bad_NFS_rename 0 /* Can rename(A,B) falsely report success? */" + + $ech >&3 "$0: configuring bad_nw_utime $dots" + cat >a.c <&2 + then + rm -f a.a && + echo a >a.a && chmod -w a.a || exit + if $aout + then a=0 + else a=1 + fi + rm -f a.a || exit + else a=0 + fi + echo >&3 $a + echo "#define bad_nw_utime $a /* Does utime() work on unwriteable files? */" $ech >&3 "$0: configuring void, VOID $dots" cat >a.c <string, &st) == 0 ) ! /* File exists, but no symlink */ ! return 1; ! } ! # else ! return 1; ! # endif case ENOENT: return 0; default: return -1; } *************** *** 1595,1601 **** } # endif ! # if bad_a_rename /* * There's a short window of inconsistency * during which the lock file is writable. --- 1610,1617 ---- } # endif ! if ( bad_a_rename || (bad_nw_utime && mtime!=-1) ) ! { /* * There's a short window of inconsistency * during which the lock file is writable. *************** *** 1603,1609 **** mode_while_renaming = mode|S_IWUSR; if (mode != mode_while_renaming) set_mode = 1; ! # endif # if has_fchmod if (0