OSDN Git Service

Update mtime on file truncation.
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Mon, 21 Dec 2009 18:53:33 +0000 (18:53 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Mon, 21 Dec 2009 18:53:33 +0000 (18:53 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@87 60bc1c72-a15a-11de-b98f-4500b42dc123

libexfat/cluster.c

index 76f27c9..3013a29 100644 (file)
@@ -325,6 +325,7 @@ int exfat_truncate(struct exfat* ef, struct exfat_node* node, uint64_t size)
        if (node->size != size)
        {
                node->size = size;
+               node->mtime = time(NULL);
                node->flags |= EXFAT_ATTRIB_DIRTY;
        }
        return 0;