diff options
author | Mark H Weaver <mhw@netris.org> | 2013-11-04 13:33:49 -0500 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2013-11-04 13:38:06 -0500 |
commit | 7a78cc7af24a1303dd0117cb977e15ca89a5dad8 (patch) | |
tree | da22901df6422742da8e3d58e2eb724a4c7135ff /gnu/packages/patches | |
parent | 2ebab8e909b377d58bb52c33d3a31d121a0f64de (diff) | |
download | guix-7a78cc7af24a1303dd0117cb977e15ca89a5dad8.tar guix-7a78cc7af24a1303dd0117cb977e15ca89a5dad8.tar.gz |
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.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r-- | gnu/packages/patches/mit-krb5-init-fix.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/patches/mit-krb5-init-fix.patch b/gnu/packages/patches/mit-krb5-init-fix.patch new file mode 100644 index 0000000000..13e49c2789 --- /dev/null +++ b/gnu/packages/patches/mit-krb5-init-fix.patch @@ -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; |