[krbdev.mit.edu #1434] cygwin has same file rename issues are win32

The RT System itself via RT rt-comment at krbdev.mit.edu
Sun Apr 20 19:36:00 EDT 2003


>From liebman at zod.com  Sun Apr 20 19:35:57 2003
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83]) by krbdev.mit.edu (8.9.3) with ESMTP
	id TAA18593; Sun, 20 Apr 2003 19:35:57 -0400 (EDT)
From: liebman at zod.com
Received: from zod.com (66-215-26-54.pas-mres.charterpipeline.net [66.215.26.54])
	by pacific-carrier-annex.mit.edu (8.12.4/8.9.2) with ESMTP id h3KNZuSm000065
	for <krb5-bugs at mit.edu>; Sun, 20 Apr 2003 19:35:56 -0400 (EDT)
Received: from liebman by zod.com with local (Exim 4.14)
	id HDO1JJ-0001O0-M8
	for krb5-bugs at mit.edu; Sun, 20 Apr 2003 16:35:43 -0700
To: krb5-bugs at mit.edu
Subject: cygwin patch for keb5-current and 1.3alpha2
Reply-To: liebman at zod.com
Cc: 
X-send-pr-version: 3.99
Message-Id: <EHDO1JJ-0001O0-M8 at zod.com>
Date: Sun, 20 Apr 2003 16:35:43 -0700


>Submitter-Id:	net
>Originator:	Christopher B. Liebman
>Organization:
	none
>Confidential:	no
>Synopsis:	cygwin has same file rename issues are win32
>Severity:	non-critical
>Priority:	low
>Category:	krb5-kdc
>Class:		sw-bug
>Release:	krb5-current-20030419
>Environment:
	
System: CYGWIN_NT-5.0 XYZZY 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown Cygwin


>Description:
	when the kdc is started on cygwin it fails during replay
	cache initialization and exits.
>How-To-Repeat:
	compile and start the kdc on cygwin.
>Fix:
	If on cygwin use the win32 code already there.  See the following 
	one line patch:


diff -u -r krb5-current-dist/src/lib/krb5/rcache/rc_io.c krb5-current/src/lib/krb5/rcache/rc_io.c
--- krb5-current-dist/src/lib/krb5/rcache/rc_io.c	2002-09-17 00:01:00.000000000 -0700
+++ krb5-current/src/lib/krb5/rcache/rc_io.c	2003-04-20 13:58:10.000000000 -0700
@@ -271,7 +271,7 @@
 krb5_rc_io_move(krb5_context context, krb5_rc_iostuff *new1,
 		krb5_rc_iostuff *old)
 {
-#if defined(_WIN32)
+#if defined(_WIN32) || defined(__CYGWIN__)
     char *new_fn = NULL;
     char *old_fn = NULL;
     off_t offset = 0;



More information about the krb5-bugs mailing list