diff options
Diffstat (limited to 'debian/patches/fs_unification0001-libfshelp-pass-cookie-to-the-callback-function.patch')
-rw-r--r-- | debian/patches/fs_unification0001-libfshelp-pass-cookie-to-the-callback-function.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/fs_unification0001-libfshelp-pass-cookie-to-the-callback-function.patch b/debian/patches/fs_unification0001-libfshelp-pass-cookie-to-the-callback-function.patch new file mode 100644 index 00000000..b6bee27c --- /dev/null +++ b/debian/patches/fs_unification0001-libfshelp-pass-cookie-to-the-callback-function.patch @@ -0,0 +1,30 @@ +From c220ebb1de81ae4ee21943b7e2d81b9a45d28e53 Mon Sep 17 00:00:00 2001 +From: Justus Winter <justus@gnupg.org> +Date: Wed, 20 Apr 2016 16:42:02 +0200 +Subject: [PATCH hurd 1/5] libfshelp: pass cookie to the callback function + +Previously, NULL was passed as cookie. That notably caused some +'peropen' objects to be created without context. + +* libfshelp/fetch-root.c (fshelp_fetch_root): Pass cookie to the +callback function. +--- + libfshelp/fetch-root.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c +index cc9fa50..eb0f315 100644 +--- a/libfshelp/fetch-root.c ++++ b/libfshelp/fetch-root.c +@@ -134,7 +134,7 @@ fshelp_fetch_root (struct transbox *box, void *cookie, + + fds[STDERR_FILENO] = reauth (getdport (STDERR_FILENO)); + +- err = fshelp_start_translator_long (fetch_underlying, NULL, ++ err = fshelp_start_translator_long (fetch_underlying, cookie, + argz, argz, argz_len, + fds, MACH_MSG_TYPE_COPY_SEND, + STDERR_FILENO + 1, +-- +2.1.4 + |