aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream/stream_smb.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2013-06-06 20:40:02 +0200
committerGravatar wm4 <wm4@nowhere>2013-06-16 22:05:10 +0200
commit0d5e6084aed34a9e6f48a4a2cfaf095b17acb21b (patch)
tree8513c329707016173c6b482961cf721b81b5bfc7 /stream/stream_smb.c
parent1c35794efd7d025457e527b61f7c23fe375c2f5a (diff)
stream: don't set EOF flag in stream implementations
EOF should be set when reading more data fails. The stream implementations have nothing to say here and should behave correctly when trying to read when EOF was actually read. Even when seeking, a correct EOF flag should be guaranteed. stream_seek() (or actually stream_seek_long()) calls stream_fill_buffer() at least once, which also updates the EOF flag.
Diffstat (limited to 'stream/stream_smb.c')
-rw-r--r--stream/stream_smb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/stream/stream_smb.c b/stream/stream_smb.c
index 3b67d6c88d..33b13f7a11 100644
--- a/stream/stream_smb.c
+++ b/stream/stream_smb.c
@@ -88,7 +88,6 @@ static int control(stream_t *s, int cmd, void *arg) {
static int seek(stream_t *s,int64_t newpos) {
s->pos = newpos;
if(smbc_lseek(s->fd,s->pos,SEEK_SET)<0) {
- s->eof=1;
return 0;
}
return 1;