From ba374ac11cbf23bc814834a7b78594ed021ab9bc Mon Sep 17 00:00:00 2001 From: Jeremie Koenig Date: Sun, 1 Aug 2010 02:53:33 +0200 Subject: Implement file_replarent in libtrivfs * libtrivfs/file-reparent.c (trivfs_S_file_reparent): Call trivfs_S_io_duplicate. --- libtrivfs/file-reparent.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libtrivfs/file-reparent.c') 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); } -- cgit v1.2.3