OSDN Git Service

Do not set archive bit on directory creation.
authorrelan <relan@users.noreply.github.com>
Thu, 10 Sep 2015 09:24:59 +0000 (12:24 +0300)
committerrelan <relan@users.noreply.github.com>
Thu, 24 Sep 2015 05:28:42 +0000 (08:28 +0300)
Windows Exporer does not set archive bit for new directories either.
This fixes compatibility with Zalman VE-200 which is unable to read
images from the _ISO directory if it has archive bit set.

libexfat/node.c

index 6e18c09..f3d10e0 100644 (file)
@@ -973,7 +973,7 @@ int exfat_mkdir(struct exfat* ef, const char* path)
        int rc;
        struct exfat_node* node;
 
-       rc = create(ef, path, EXFAT_ATTRIB_ARCH | EXFAT_ATTRIB_DIR);
+       rc = create(ef, path, EXFAT_ATTRIB_DIR);
        if (rc != 0)
                return rc;
        rc = exfat_lookup(ef, &node, path);