From 9efb57918f2e897dd5b5edbfe0727ca64bc8c6ce Mon Sep 17 00:00:00 2001 From: uvman Date: Fri, 21 Jul 2006 22:04:44 +0000 Subject: [PATCH] Fix a logic error that made 'ls -ls' show the wrong file size for compressed and sparse files. --- libntfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs/inode.c b/libntfs/inode.c index fbfaa1f1..c199bf80 100644 --- a/libntfs/inode.c +++ b/libntfs/inode.c @@ -200,7 +200,7 @@ get_size: if (ctx->attr->non_resident) { ni->data_size = sle64_to_cpu(ctx->attr->data_size); if (ctx->attr->flags & - (ATTR_IS_COMPRESSED & ATTR_IS_SPARSE)) + (ATTR_IS_COMPRESSED | ATTR_IS_SPARSE)) ni->allocated_size = sle64_to_cpu( ctx->attr->compressed_size); else