commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 11/31: libfshelp: pass cookie to the callback function


From: Samuel Thibault
Subject: [hurd] 11/31: libfshelp: pass cookie to the callback function
Date: Mon, 02 May 2016 23:48:32 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 8e71c142348ed3d2ae6374cff47b7ec766005f53
Author: Justus Winter <address@hidden>
Date:   Wed Apr 20 16:42:02 2016 +0200

    libfshelp: pass cookie to the callback function
    
    Previously, NULL was passed as cookie.  That notably caused some
    'peropen' objects to be created without context.
    
    Fixes 0bb14d0b.
    
    * 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,

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]