aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2004-11-29 19:13:15 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2004-11-29 19:13:15 +0000
commitc73761963b977b53be292f892e222220c2e6b78f (patch)
tree262c7a65d365205de8af64391dabb51f8967f8c2
parent5dc1d26e7075a81c284c48f4e751b4b5d811baf3 (diff)
downloadsshfs-c73761963b977b53be292f892e222220c2e6b78f.tar
sshfs-c73761963b977b53be292f892e222220c2e6b78f.tar.gz
sshfs-c73761963b977b53be292f892e222220c2e6b78f.tar.bz2
sshfs-c73761963b977b53be292f892e222220c2e6b78f.zip
fix
-rw-r--r--sshfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshfs.c b/sshfs.c
index 6439693..4338e91 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -76,7 +76,7 @@
static int infd;
static int outfd;
-static int debug = 1;
+static int debug = 0;
struct buffer {
uint8_t *p;
@@ -850,7 +850,6 @@ static int sshfs_getdir(const char *path, fuse_dirh_t h, fuse_dirfil_t filler)
if (err == MY_EOF)
err = 0;
-
err2 = sftp_request(SSH_FXP_CLOSE, &handle, 0, NULL);
if (!err)
err = err2;
@@ -1080,7 +1079,8 @@ static int sshfs_read(const char *path, char *rbuf, size_t size, off_t offset,
}
}
buf_free(&data);
- }
+ } else if (err == MY_EOF)
+ err = 0;
buf_free(&buf);
return err;
}