aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sshfs.c b/sshfs.c
index 8cde971..2ef45d5 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -2000,6 +2000,9 @@ static int sshfs_getattr(const char *path, struct stat *stbuf)
&buf, SSH_FXP_ATTRS, &outbuf);
if (!err) {
err = buf_get_attrs(&outbuf, stbuf, NULL);
+#ifdef __APPLE__
+ stbuf->st_blksize = 0;
+#endif
buf_free(&outbuf);
}
buf_free(&buf);
@@ -3203,6 +3206,9 @@ static int sshfs_fgetattr(const char *path, struct stat *stbuf,
err = sftp_request(SSH_FXP_FSTAT, &buf, SSH_FXP_ATTRS, &outbuf);
if (!err) {
err = buf_get_attrs(&outbuf, stbuf, NULL);
+#ifdef __APPLE__
+ stbuf->st_blksize = 0;
+#endif
buf_free(&outbuf);
}
buf_free(&buf);