New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #2706: fetchmail.patch

File fetchmail.patch, 3.4 KB (added by shadow@…, 8 years ago)

gssapi/krb5 patch for fetchmail

  • fetchmail-6.2.

    diff -ruw fetchmail-6.2.5/config.h.in fetchmail-6.2.5-macosx/config.h.in
    old new  
    2222/* Define as 1 if you have gettext and don't want to use GNU gettext.  */ 
    2323#undef HAVE_GETTEXT 
    2424 
     25/* Define if you have krb5_init_etc */ 
     26#undef HAVE_KRB5_INIT_ETS 
     27 
    2528/* Define if you have MIT kerberos */ 
    2629#undef HAVE_GSS_C_NT_HOSTBASED_SERVICE 
    2730 
  • fetchmail-6.2.

    diff -ruw fetchmail-6.2.5/configure.in fetchmail-6.2.5-macosx/configure.in
    old new  
    471471                AC_CHECK_LIB(k5crypto, 
    472472                   krb5_des_string_to_key, 
    473473                   libk5crypto=-lk5crypto, 
     474                      AC_CHECK_LIB(k5crypto, 
     475                         krb5_c_string_to_key, 
     476                         libk5crypto=-lk5crypto, 
    474477                      AC_ERROR([Kerberos 5 DES libraries not found]), 
    475478                   ${LDEFLAGS} ${ac_krblibs}), 
     479                   ${LDEFLAGS} ${ac_krblibs}), 
    476480                 ${LDEFLAGS} ${ac_krblibs}) 
    477481        fi 
    478482        AC_CHECK_LIB(krb5, krb5_init_context,[], 
    479483           continue, 
    480484           ${LDEFLAGS} ${ac_krblibs}) 
     485        AC_CHECK_LIB(krb5, krb5_init_ets, 
     486           AC_DEFINE(HAVE_KRB5_INIT_ETS), 
     487           AC_MSG_RESULT([Kerberos V library loads its own error tables])) 
    481488        AC_DEFINE(KERBEROS_V5) 
    482489        test "$dir" != "/usr" && CEFLAGS="$CEFLAGS -I$dir/include" 
    483490        LDEFLAGS="$LDEFLAGS -L$dir/lib" 
  • fetchmail-6.2.

    Only in fetchmail-6.2.5-macosx: configure.in~
    diff -ruw fetchmail-6.2.5/driver.c fetchmail-6.2.5-macosx/driver.c
    old new  
    210210    krb5_auth_context auth_context = NULL; 
    211211 
    212212    krb5_init_context(&context); 
     213#ifdef HAVE_KRB5_INIT_ETS 
    213214    krb5_init_ets(context); 
     215#endif 
    214216    krb5_auth_con_init(context, &auth_context); 
    215217 
    216218    if (retval = krb5_cc_default(context, &ccdef)) { 
  • fetchmail-6.2.

    diff -ruw fetchmail-6.2.5/fetchmail.c fetchmail-6.2.5-macosx/fetchmail.c
    old new  
    387387        { 
    388388            fprintf(stderr,GT_("fetchmail: %s fetchmail at %d killed.\n"), 
    389389                    bkgd ? GT_("background") : GT_("foreground"), pid); 
    390             lock_release(); 
     390            lock_do_release(); 
    391391            if (argc == 2) 
    392392                exit(0); 
    393393            else 
     
    13001300          memset(ctl->password, '\0', strlen(ctl->password)); 
    13011301 
    13021302#if !defined(HAVE_ATEXIT) && !defined(HAVE_ON_EXIT) 
    1303     lock_release(); 
     1303    lock_do_release(); 
    13041304#endif 
    13051305 
    13061306    if (activecount == 0) 
  • fetchmail-6.2.

    diff -ruw fetchmail-6.2.5/fetchmail.h fetchmail-6.2.5-macosx/fetchmail.h
    old new  
    462462 
    463463/* lock.c: concurrency locking */ 
    464464void lock_setup(void), lock_assert(void); 
    465 void lock_or_die(void), lock_release(void); 
     465void lock_or_die(void), lock_do_release(void); 
    466466int lock_state(void); 
    467467void lock_dispose(void); 
    468468 
  • fetchmail-6.2.

    diff -ruw fetchmail-6.2.5/lock.c fetchmail-6.2.5-macosx/lock.c
    old new  
    125125    } 
    126126} 
    127127 
    128 void lock_release(void) 
     128void lock_do_release(void) 
    129129/* release a lock on a given host */ 
    130130{ 
    131131    unlink(lockfile);