Changes by: cha0smaster
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22849/ntfsprogs
Modified Files:
ntfsmount.c
Log Message:
ntfsmount: it's not a error when file didn't contain unnamed data attribute. E.g. $Secure.
Index: ntfsmount.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsmount.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- ntfsmount.c 3 Jul 2005 00:35:48 -0000 1.1
+++ ntfsmount.c 3 Jul 2005 01:49:17 -0000 1.2
@@ -211,6 +211,9 @@ static int ntfs_fuse_getattr(const char
stbuf->st_blocks = na->allocated_size >>
vol->sector_size_bits;
ntfs_attr_close(na);
+ } else {
+ stbuf->st_size = 0;
+ stbuf->st_blocks = 0;
}
} else {
stbuf->st_mode = S_IFREG | (0777 & ~ctx->fmask);
@@ -220,8 +223,10 @@ static int ntfs_fuse_getattr(const char
stbuf->st_blocks = na->allocated_size >>
vol->sector_size_bits;
ntfs_attr_close(na);
- } else
- res = -errno;
+ } else {
+ stbuf->st_size = 0;
+ stbuf->st_blocks = 0;
+ }
}
stbuf->st_uid = ctx->uid;
stbuf->st_gid = ctx->gid;
|