From 47effe721cbb3c7b11f9a7bb5453bf802c6026d6 Mon Sep 17 00:00:00 2001 From: Pascal Obry Date: Mon, 22 Feb 2016 10:26:15 +0100 Subject: [PATCH] Allows files to be seekable. --- cloudfuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudfuse.c b/cloudfuse.c index b7eab8f..eafd066 100644 --- a/cloudfuse.c +++ b/cloudfuse.c @@ -385,7 +385,7 @@ static int cfs_open(const char* path, struct fuse_file_info* info) of->flags = info->flags; info->fh = (uintptr_t)of; info->direct_io = 1; - info->nonseekable = 1; + info->nonseekable = 0; //FIXME: potential leak if free(of) not used? although if free(of) is used will generate bad descriptor errors debugf(DBG_LEVEL_NORM, KBLU "exit 6: cfs_open(%s)", path); return 0;