OSDN Git Service

Fix return value from exfat_rename().
authorrelan <relan@users.noreply.github.com>
Sat, 18 Jan 2014 07:36:44 +0000 (07:36 +0000)
committerrelan <relan@users.noreply.github.com>
Mon, 24 Aug 2015 05:26:16 +0000 (08:26 +0300)
libexfat/node.c

index 6cb0eb0..af05533 100644 (file)
@@ -1093,7 +1093,7 @@ int exfat_rename(struct exfat* ef, const char* old_path, const char* new_path)
        rc = rename_entry(ef, dir, node, name, cluster, offset);
        exfat_put_node(ef, dir);
        exfat_put_node(ef, node);
-       return 0;
+       return rc;
 }
 
 void exfat_utimes(struct exfat_node* node, const struct timespec tv[2])