]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Add patch to work with modern heimdal
authorBenjamin Kaduk <kaduk@mit.edu>
Sun, 11 Dec 2016 23:07:41 +0000 (18:07 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Mon, 12 Dec 2016 00:50:29 +0000 (19:50 -0500)
debian/patches/0003-Catch-up-to-roken-s-rename-of-base64-symbols.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0003-Catch-up-to-roken-s-rename-of-base64-symbols.patch b/debian/patches/0003-Catch-up-to-roken-s-rename-of-base64-symbols.patch
new file mode 100644 (file)
index 0000000..08040d9
--- /dev/null
@@ -0,0 +1,35 @@
+From: Benjamin Kaduk <kaduk@mit.edu>
+Date: Sun, 11 Dec 2016 18:06:03 -0500
+Subject: Catch up to roken's rename of base64 symbols
+
+Upstream roken (i.e., heimdal) renamed their base64 encode/decode
+routines to have a rk_ prefix in 2014, but upstream OpenAFS hasn't
+pulled in an update to their bundled heimdal files since then.
+So, upstream is still using the old name, whereas we are trying
+to link against a more modern libroken, and must use the new names.
+---
+ src/auth/userok.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/auth/userok.c b/src/auth/userok.c
+index fdb3038..caa9ab6 100644
+--- a/src/auth/userok.c
++++ b/src/auth/userok.c
+@@ -470,7 +470,7 @@ ParseLine(char *buffer, struct rx_identity *user)
+       if (decodedName == NULL)
+           return ENOMEM;
+-      len = base64_decode(ename, decodedName);
++      len = rk_base64_decode(ename, decodedName);
+       if (len<0) {
+           free(decodedName);
+           return EINVAL;
+@@ -568,7 +568,7 @@ afsconf_AddIdentity(struct afsconf_dir *adir, struct rx_identity *user)
+     if (user->kind == RX_ID_KRB4) {
+       fprintf(tf, "%s\n", user->displayName);
+     } else {
+-      base64_encode(user->exportedName.val, user->exportedName.len,
++      rk_base64_encode(user->exportedName.val, user->exportedName.len,
+                     &ename);
+       fprintf(tf, " %d %s %s\n", user->kind, ename, user->displayName);
+       free(ename);
index 74438a94b661cf9cbfc444e7c0f8b79e652bd8bd..46311a018c52f88e70deeca761ffe2a3a3527c00 100644 (file)
@@ -1,2 +1,3 @@
 0003-Add-dummy-exit-command-for-afsd-to-do-nothing.patch
 0002-AFS_component_version_number.c-Respect-SOURCE_DATE_E.patch
+0003-Catch-up-to-roken-s-rename-of-base64-symbols.patch