diff options
-rw-r--r-- | debian/patches/fix-rename0001-Fix-creating-named-sockets-inside-fakeroot-hurd.patch | 38 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/debian/patches/fix-rename0001-Fix-creating-named-sockets-inside-fakeroot-hurd.patch b/debian/patches/fix-rename0001-Fix-creating-named-sockets-inside-fakeroot-hurd.patch new file mode 100644 index 00000000..8b68c592 --- /dev/null +++ b/debian/patches/fix-rename0001-Fix-creating-named-sockets-inside-fakeroot-hurd.patch @@ -0,0 +1,38 @@ +From 09964a022f1c1e969d8258c7a38879b0fa983402 Mon Sep 17 00:00:00 2001 +From: Svante Signell <svante.signell@gmail.com> +Date: Thu, 14 May 2015 01:36:15 +0200 +Subject: [PATCH hurd] Fix creating named sockets inside fakeroot-hurd + +* trans/fakeroot.c (netfs_set_translator): New function. +--- + trans/fakeroot.c | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +diff --git a/trans/fakeroot.c b/trans/fakeroot.c +index a223bc4..671314f 100644 +--- a/trans/fakeroot.c ++++ b/trans/fakeroot.c +@@ -428,6 +428,20 @@ netfs_S_dir_lookup (struct protid *diruser, + return err; + } + ++/* The user may define this function. Attempt to set the passive ++ translator record for FILE to ARGZ (of length ARGZLEN) for user ++ CRED. */ ++error_t ++netfs_set_translator (struct iouser *cred, struct node *np, ++ char *argz, size_t argzlen) ++{ ++ return file_set_translator (netfs_node_netnode (np)->file, ++ FS_TRANS_EXCL|FS_TRANS_SET, ++ FS_TRANS_EXCL|FS_TRANS_SET, 0, ++ argz, argzlen, ++ MACH_PORT_NULL, MACH_MSG_TYPE_COPY_SEND); ++} ++ + /* These callbacks are used only by the standard netfs_S_dir_lookup, + which we do not use. But the shared library requires us to define them. */ + error_t +-- +2.1.4 + diff --git a/debian/patches/series b/debian/patches/series index dbf6a3d9..2640e4c4 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -63,3 +63,4 @@ bootshell0007-XXX-bootshell.patch bootshell0008-XXX-proc-fix-build.patch bootshell0009-fixup-more-error-handling.patch bootshell0010-pull-code-from-livecd-XXX-document.patch +fix-rename0001-Fix-creating-named-sockets-inside-fakeroot-hurd.patch |