1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|