Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <001401c3063a$db4dba80$0401010a@XYZZY> From: "Christopher B. Liebman" To: Subject: Kerberos5 1.2.[78] patch available Date: Fri, 18 Apr 2003 23:13:53 -0700 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0011_01C30600.2DB10B50" X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Note-from-DJ: This may be spam ------=_NextPart_000_0011_01C30600.2DB10B50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Its small so it's attached. It will apply to versions 1.2.7 and 1.2.8. After applying the patch run: ./configure --with-cc=gcc --disable-dns --prefix=/usr/kerberos make make install Then follow the install documentation in the doc directory. You can set the prefix to wherever you want to install to, /opt/kerberos is another good choice.. Both the clients and server work. I also have sysvinit scripts for both the kdc and the admin servers if anyone is interested. It's been tested on w2k, *should* work on other platforms too. -- Chris ------=_NextPart_000_0011_01C30600.2DB10B50 Content-Type: application/octet-stream; name="krb5.cygwin.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="krb5.cygwin.patch" diff -u -r krb5-1.2.8-dist/src/lib/krb4/in_tkt.c = krb5-1.2.8/src/lib/krb4/in_tkt.c=0A= --- krb5-1.2.8-dist/src/lib/krb4/in_tkt.c 2001-01-26 20:43:32.000000000 = -0800=0A= +++ krb5-1.2.8/src/lib/krb4/in_tkt.c 2003-04-18 21:45:36.000000000 -0700=0A= @@ -35,6 +35,9 @@=0A= #ifdef HAVE_UNISTD_H=0A= #include =0A= #endif=0A= +#ifdef __CYGWIN__=0A= +#include =0A= +#endif=0A= =0A= extern int krb_debug;=0A= =0A= diff -u -r krb5-1.2.8-dist/src/lib/krb4/send_to_kdc.c = krb5-1.2.8/src/lib/krb4/send_to_kdc.c=0A= --- krb5-1.2.8-dist/src/lib/krb4/send_to_kdc.c 2000-05-17 = 00:13:44.000000000 -0700=0A= +++ krb5-1.2.8/src/lib/krb4/send_to_kdc.c 2003-04-18 21:15:46.000000000 = -0700=0A= @@ -18,7 +18,9 @@=0A= #ifdef HAVE_SYS_SELECT_H=0A= #include =0A= #endif=0A= -=0A= +#ifdef __CYGWIN__=0A= +#include =0A= +#endif=0A= #define S_AD_SZ sizeof(struct sockaddr_in)=0A= =0A= #ifdef HAVE_STDLIB_H=0A= diff -u -r krb5-1.2.8-dist/src/lib/krb5/rcache/rc_io.c = krb5-1.2.8/src/lib/krb5/rcache/rc_io.c=0A= --- krb5-1.2.8-dist/src/lib/krb5/rcache/rc_io.c 2001-10-29 = 17:21:32.000000000 -0800=0A= +++ krb5-1.2.8/src/lib/krb5/rcache/rc_io.c 2003-04-18 21:15:46.000000000 = -0700=0A= @@ -262,6 +262,18 @@=0A= krb5_rc_io_open(context, new, fn);=0A= free(fn);=0A= #else=0A= +#ifdef __CYGWIN__=0A= + close(new->fd);=0A= +/* unlink(new->fn);*/=0A= + close(old->fd);=0A= + if (rename(old->fn,new->fn) =3D=3D -1) /* MUST be atomic! */=0A= + return KRB5_RC_IO_UNKNOWN;=0A= + fn =3D new->fn;=0A= + new->fn =3D NULL; /* avoid clobbering */=0A= + krb5_rc_io_close(context, new);=0A= + krb5_rc_io_open(context, new, fn);=0A= + free(fn);=0A= +#else=0A= if (rename(old->fn,new->fn) =3D=3D -1) /* MUST be atomic! */=0A= return KRB5_RC_IO_UNKNOWN;=0A= fn =3D new->fn;=0A= @@ -274,6 +286,7 @@=0A= new->fd =3D dup(old->fd);=0A= #endif=0A= #endif=0A= +#endif=0A= return 0;=0A= }=0A= =0A= diff -u -r krb5-1.2.8-dist/src/util/ss/help.c = krb5-1.2.8/src/util/ss/help.c=0A= --- krb5-1.2.8-dist/src/util/ss/help.c 2000-05-01 08:53:38.000000000 = -0700=0A= +++ krb5-1.2.8/src/util/ss/help.c 2003-04-18 21:40:16.000000000 -0700=0A= @@ -12,7 +12,11 @@=0A= #include "ss_internal.h"=0A= #include "copyright.h"=0A= =0A= +#ifdef __CYGWIN__=0A= +#include =0A= +#else=0A= extern int errno;=0A= +#endif=0A= =0A= void ss_help (argc, argv, sci_idx, info_ptr)=0A= int argc;=0A= diff -u -r krb5-1.2.8-dist/src/util/ss/pager.c = krb5-1.2.8/src/util/ss/pager.c=0A= --- krb5-1.2.8-dist/src/util/ss/pager.c 1995-04-27 09:41:16.000000000 = -0700=0A= +++ krb5-1.2.8/src/util/ss/pager.c 2003-04-18 21:15:46.000000000 -0700=0A= @@ -17,7 +17,11 @@=0A= static char MORE[] =3D "more";=0A= extern char *_ss_pager_name;=0A= extern char *getenv();=0A= +#ifdef __CYGWIN__=0A= +#include =0A= +#else=0A= extern int errno;=0A= +#endif=0A= =0A= /*=0A= * this needs a *lot* of work....=0A= diff -u -r krb5-1.2.8-dist/src/util/ss/parse.c = krb5-1.2.8/src/util/ss/parse.c=0A= --- krb5-1.2.8-dist/src/util/ss/parse.c 1994-08-18 13:48:42.000000000 = -0700=0A= +++ krb5-1.2.8/src/util/ss/parse.c 2003-04-18 21:15:46.000000000 -0700=0A= @@ -6,7 +6,9 @@=0A= =0A= #include "ss_internal.h"=0A= #include "copyright.h"=0A= -=0A= +#ifdef __CYGWIN__=0A= +#include =0A= +#endif=0A= =0A= enum parse_mode { WHITESPACE, TOKEN, QUOTED_STRING };=0A= =0A= ------=_NextPart_000_0011_01C30600.2DB10B50 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_0011_01C30600.2DB10B50--