diff -ruw fetchmail-6.2.5/config.h.in fetchmail-6.2.5-macosx/config.h.in
old
|
new
|
|
22 | 22 | /* Define as 1 if you have gettext and don't want to use GNU gettext. */ |
23 | 23 | #undef HAVE_GETTEXT |
24 | 24 | |
| 25 | /* Define if you have krb5_init_etc */ |
| 26 | #undef HAVE_KRB5_INIT_ETS |
| 27 | |
25 | 28 | /* Define if you have MIT kerberos */ |
26 | 29 | #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE |
27 | 30 | |
diff -ruw fetchmail-6.2.5/configure.in fetchmail-6.2.5-macosx/configure.in
old
|
new
|
|
471 | 471 | AC_CHECK_LIB(k5crypto, |
472 | 472 | krb5_des_string_to_key, |
473 | 473 | libk5crypto=-lk5crypto, |
| 474 | AC_CHECK_LIB(k5crypto, |
| 475 | krb5_c_string_to_key, |
| 476 | libk5crypto=-lk5crypto, |
474 | 477 | AC_ERROR([Kerberos 5 DES libraries not found]), |
475 | 478 | ${LDEFLAGS} ${ac_krblibs}), |
| 479 | ${LDEFLAGS} ${ac_krblibs}), |
476 | 480 | ${LDEFLAGS} ${ac_krblibs}) |
477 | 481 | fi |
478 | 482 | AC_CHECK_LIB(krb5, krb5_init_context,[], |
479 | 483 | continue, |
480 | 484 | ${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])) |
481 | 488 | AC_DEFINE(KERBEROS_V5) |
482 | 489 | test "$dir" != "/usr" && CEFLAGS="$CEFLAGS -I$dir/include" |
483 | 490 | LDEFLAGS="$LDEFLAGS -L$dir/lib" |
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
|
|
210 | 210 | krb5_auth_context auth_context = NULL; |
211 | 211 | |
212 | 212 | krb5_init_context(&context); |
| 213 | #ifdef HAVE_KRB5_INIT_ETS |
213 | 214 | krb5_init_ets(context); |
| 215 | #endif |
214 | 216 | krb5_auth_con_init(context, &auth_context); |
215 | 217 | |
216 | 218 | if (retval = krb5_cc_default(context, &ccdef)) { |
diff -ruw fetchmail-6.2.5/fetchmail.c fetchmail-6.2.5-macosx/fetchmail.c
old
|
new
|
|
387 | 387 | { |
388 | 388 | fprintf(stderr,GT_("fetchmail: %s fetchmail at %d killed.\n"), |
389 | 389 | bkgd ? GT_("background") : GT_("foreground"), pid); |
390 | | lock_release(); |
| 390 | lock_do_release(); |
391 | 391 | if (argc == 2) |
392 | 392 | exit(0); |
393 | 393 | else |
… |
… |
|
1300 | 1300 | memset(ctl->password, '\0', strlen(ctl->password)); |
1301 | 1301 | |
1302 | 1302 | #if !defined(HAVE_ATEXIT) && !defined(HAVE_ON_EXIT) |
1303 | | lock_release(); |
| 1303 | lock_do_release(); |
1304 | 1304 | #endif |
1305 | 1305 | |
1306 | 1306 | if (activecount == 0) |
diff -ruw fetchmail-6.2.5/fetchmail.h fetchmail-6.2.5-macosx/fetchmail.h
old
|
new
|
|
462 | 462 | |
463 | 463 | /* lock.c: concurrency locking */ |
464 | 464 | void lock_setup(void), lock_assert(void); |
465 | | void lock_or_die(void), lock_release(void); |
| 465 | void lock_or_die(void), lock_do_release(void); |
466 | 466 | int lock_state(void); |
467 | 467 | void lock_dispose(void); |
468 | 468 | |
diff -ruw fetchmail-6.2.5/lock.c fetchmail-6.2.5-macosx/lock.c
old
|
new
|
|
125 | 125 | } |
126 | 126 | } |
127 | 127 | |
128 | | void lock_release(void) |
| 128 | void lock_do_release(void) |
129 | 129 | /* release a lock on a given host */ |
130 | 130 | { |
131 | 131 | unlink(lockfile); |