Ticket #1059: sshfs.c.patch
File sshfs.c.patch, 693 bytes (added by davidsarah, at 2010-05-28T22:45:25Z) |
---|
-
sshfs-fuse-2.
old new 2257 2257 2258 2258 static int sshfs_release(const char *path, struct fuse_file_info *fi) 2259 2259 { 2260 int err = 0; 2260 2261 struct sshfs_file *sf = get_sshfs_file(fi); 2261 2262 struct buffer *handle = &sf->handle; 2262 2263 if (sshfs_file_is_conn(sf)) { 2263 2264 sshfs_flush(path, fi); 2264 sftp_request(SSH_FXP_CLOSE, handle, 0, NULL);2265 err = sftp_request(SSH_FXP_CLOSE, handle, SSH_FXP_STATUS, NULL); 2265 2266 } 2266 2267 buf_free(handle); 2267 2268 chunk_put_locked(sf->readahead); 2268 2269 sshfs_file_put(sf); 2269 return 0;2270 return err; 2270 2271 } 2271 2272 2272 2273 static int sshfs_sync_read(struct sshfs_file *sf, char *rbuf, size_t size,