-f
authorRaúl Porcel <armin76@gentoo.org>
Wed, 14 Mar 2007 17:55:50 +0000 (17:55 +0000)
committerRaúl Porcel <armin76@gentoo.org>
Wed, 14 Mar 2007 17:55:50 +0000 (17:55 +0000)
net-ftp/yafc/files/yafc-1.1.1-gcc4.patch [new file with mode: 0644]

diff --git a/net-ftp/yafc/files/yafc-1.1.1-gcc4.patch b/net-ftp/yafc/files/yafc-1.1.1-gcc4.patch
new file mode 100644 (file)
index 0000000..bf6ca67
--- /dev/null
@@ -0,0 +1,43 @@
+--- lib/gssapi.c.orig  2007-03-14 18:13:14.000000000 +0100
++++ lib/gssapi.c       2007-03-14 18:23:20.000000000 +0100
+@@ -72,11 +72,6 @@
+ static gss_OID_desc gss_c_nt_hostbased_service_oid_desc =
+ {10, (void *)"\x2a\x86\x48\x86\xf7\x12" "\x01\x02\x01\x04"};
+-static gss_OID GSS_C_NT_HOSTBASED_SERVICE = &gss_c_nt_hostbased_service_oid_desc;
+-
+-
+-
+-
+ /*RCSID("$Id: gssapi.c,v 1.5 2002/12/05 22:12:36 mhe Exp $");*/
+ struct gss_data {
+
+diff -ur lib/krb4.c /tmp/yafc-1.1.1/lib/krb4.c
+--- lib/krb4.c 2002-12-05 22:12:37.000000000 +0000
++++ lib/krb4.c 2006-12-16 13:23:46.000000000 +0000
+@@ -62,24 +62,6 @@
+ };
+ static int
+-krb_get_int(void *f, u_int32_t *to, int size, int lsb)
+-{
+-    int i;
+-    unsigned char *from = (unsigned char *)f;
+-
+-    *to = 0;
+-    if(lsb){
+-        for(i = size-1; i >= 0; i--)
+-            *to = (*to << 8) | from[i];
+-    }else{
+-        for(i = 0; i < size; i++)
+-            *to = (*to << 8) | from[i];
+-    }
+-    return size;
+-}
+-
+-
+-static int
+ krb4_check_prot(void *app_data, int level)
+ {
+     if(level == prot_confidential)