summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSvante Signell <svante.signell@gmail.com>2015-05-14 01:36:15 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-05-14 01:37:20 +0200
commit09964a022f1c1e969d8258c7a38879b0fa983402 (patch)
tree3b688d091946dc747c8c1f9686a456c250a68f6f
parentb497f1613187c142ad6d0b76761a49811c37da80 (diff)
Fix creating named sockets inside fakeroot-hurd
* trans/fakeroot.c (netfs_set_translator): New function.
-rw-r--r--trans/fakeroot.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index a223bc4e..671314f4 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