From a6212e46e22cdac68b7b9fea0cc04b240c0a4cb8 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 15 Mar 2016 22:13:15 +0100 Subject: Add get_source support to firmlink * trans/firmlink.c (trivfs_get_source): New function. --- trans/firmlink.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'trans/firmlink.c') diff --git a/trans/firmlink.c b/trans/firmlink.c index 69d4aaed..19382f10 100644 --- a/trans/firmlink.c +++ b/trans/firmlink.c @@ -286,3 +286,11 @@ trivfs_S_io_select_timeout (struct trivfs_protid *cred, { return trivfs_S_io_select (cred, reply, reply_type, type); } + +error_t trivfs_get_source (struct trivfs_protid *cred, + char *source, size_t source_len) +{ + strncpy (source, target, source_len - 1); + source[source_len -1 ] = '\0'; + return 0; +} -- cgit v1.2.3