mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-24 02:25:02 +08:00
ntfsmount: it's not a error when file didn't contain unnamed data attribute. E.g. $Secure.
This commit is contained in:
parent
58f7b6b345
commit
96f4a39aaf
@ -211,6 +211,9 @@ static int ntfs_fuse_getattr(const char *path, struct stat *stbuf)
|
||||
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 *path, struct stat *stbuf)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user