mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: mit-krb5: don't assume arguments are evaluated right-to-left.
* gnu/packages/patches/mit-krb5-init-fix.patch: New file. * gnu/packages/mit-krb5.scm (mit-krb5): Apply patch at the end of the custom unpack phase. * gnu-system.am (dist_patch_DATA): Add patch.
This commit is contained in:
parent
2ebab8e909
commit
7a78cc7af2
3 changed files with 27 additions and 1 deletions
18
gnu/packages/patches/mit-krb5-init-fix.patch
Normal file
18
gnu/packages/patches/mit-krb5-init-fix.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
Fix the early context initialization code to avoid assuming that
|
||||
arguments will be evaluated from right to left.
|
||||
|
||||
Patch by Mark H Weaver <mhw@netris.org>.
|
||||
|
||||
--- src/lib/krb5/krb/t_cc_config.c.orig 2012-12-17 21:47:05.000000000 -0500
|
||||
+++ src/lib/krb5/krb/t_cc_config.c 2013-10-29 18:19:16.547994590 -0400
|
||||
@@ -117,8 +117,8 @@
|
||||
int c;
|
||||
unsigned int i;
|
||||
|
||||
- bail_on_err(context, "Error initializing Kerberos library",
|
||||
- krb5_init_context(&context));
|
||||
+ ret = krb5_init_context(&context);
|
||||
+ bail_on_err(context, "Error initializing Kerberos library", ret);
|
||||
bail_on_err(context, "Error getting location of default ccache",
|
||||
krb5_cc_default(context, &ccache));
|
||||
server = NULL;
|
Loading…
Add table
Add a link
Reference in a new issue