summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Koenig <jk@jk.fr.eu.org>2010-08-01 02:53:33 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-01 02:53:33 +0200
commitba374ac11cbf23bc814834a7b78594ed021ab9bc (patch)
tree90c4d66dcac3dd9deed92f62565fa19484673db2
parentab2e7968332efa23f75bf68ee6b04a66c2ba6c72 (diff)
Implement file_replarent in libtrivfs
* libtrivfs/file-reparent.c (trivfs_S_file_reparent): Call trivfs_S_io_duplicate.
-rw-r--r--libtrivfs/file-reparent.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libtrivfs/file-reparent.c b/libtrivfs/file-reparent.c
index 321c474a..c07fbccb 100644
--- a/libtrivfs/file-reparent.c
+++ b/libtrivfs/file-reparent.c
@@ -1,6 +1,6 @@
/* Reparent a directory
- Copyright (C) 1997,2002 Free Software Foundation, Inc.
+ Copyright (C) 1997,2002,2010 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -26,5 +26,6 @@ trivfs_S_file_reparent (struct trivfs_protid *cred,
mach_port_t parent,
mach_port_t *new, mach_msg_type_name_t *new_type)
{
- return EOPNOTSUPP;
+ /* This is not a directory, so we just duplicate it */
+ return trivfs_S_io_duplicate (cred, reply, reply_type, new, new_type);
}