Allows files to be seekable.

This commit is contained in:
Pascal Obry
2016-02-22 10:26:15 +01:00
parent b26b49c12f
commit 47effe721c
+1 -1
View File
@@ -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;