summaryrefslogtreecommitdiff
path: root/trans
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-03-15 22:13:15 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-03-15 22:13:15 +0100
commita6212e46e22cdac68b7b9fea0cc04b240c0a4cb8 (patch)
tree36f023b5d121b7e1e137d713361265ea32e4fc94 /trans
parentb50c419c9b8f59b459d488d7bf11654d56f35511 (diff)
Add get_source support to firmlink
* trans/firmlink.c (trivfs_get_source): New function.
Diffstat (limited to 'trans')
-rw-r--r--trans/firmlink.c8
1 files changed, 8 insertions, 0 deletions
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;
+}