aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-05-05 11:55:53 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-05-05 11:55:53 +0000
commit61a154807b607b4b5f70b973004b4b1dd4e286c6 (patch)
tree2852a79549ba42935e76f8aed7316ec405a76d94 /sshfs.c
parentc67cf9b98b9056d30261199774d6062eb68cda2f (diff)
downloadsshfs-61a154807b607b4b5f70b973004b4b1dd4e286c6.tar
sshfs-61a154807b607b4b5f70b973004b4b1dd4e286c6.tar.gz
sshfs-61a154807b607b4b5f70b973004b4b1dd4e286c6.tar.bz2
sshfs-61a154807b607b4b5f70b973004b4b1dd4e286c6.zip
fix
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sshfs.c b/sshfs.c
index 92b3c43..9a33d9a 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -1124,8 +1124,6 @@ static int sshfs_truncate(const char *path, off_t size)
buf_free(&handle);
}
} else {
- buf_init(&buf, 0);
- buf_add_path(&buf, path);
buf_add_uint32(&buf, SSH_FILEXFER_ATTR_SIZE);
buf_add_uint64(&buf, size);
err = sftp_request(SSH_FXP_SETSTAT, &buf, SSH_FXP_STATUS, NULL);