OSDN Git Service

Fix truncate(): it always returned 0 instead of actual result.
authorrelan <relan@users.noreply.github.com>
Sat, 13 Feb 2010 08:57:16 +0000 (08:57 +0000)
committerrelan <relan@users.noreply.github.com>
Mon, 24 Aug 2015 05:26:12 +0000 (08:26 +0300)
fuse/main.c

index a37256d..409e503 100644 (file)
@@ -72,9 +72,9 @@ static int fuse_exfat_truncate(const char* path, off_t size)
        if (rc != 0)
                return rc;
 
-       exfat_truncate(&ef, node, size);
+       rc = exfat_truncate(&ef, node, size);
        exfat_put_node(&ef, node);
-       return 0;
+       return rc;
 }
 
 static int fuse_exfat_readdir(const char* path, void* buffer,