]> git.pld-linux.org Git - packages/fusesmb.git/blame - fusesmb-rewindir.patch
- add debug bcond
[packages/fusesmb.git] / fusesmb-rewindir.patch
CommitLineData
3f61e419
MWP
1
2# HG changeset patch
3# User Vincent Wagelaar <vincent@ricardis.tudelft.nl>
4# Date 1189308755 -7200
5# Node ID 43fc6b1b85482441810521998ddcc50775114c17
6# Parent 5532758d3763bd2803a67686ccba9a7475148bc3
7Fix problem with rewinddir on shares
8
9--- a/fusesmb.c Sat Sep 08 17:39:23 2007 +0200
10+++ b/fusesmb.c Sun Sep 09 05:32:35 2007 +0200
11@@ -474,6 +474,11 @@ static int fusesmb_readdir(const char *p
12 else
13 {
14 pthread_mutex_lock(&ctx_mutex);
15+ if (0 > ctx->lseekdir(ctx, (SMBCFILE *)fi->fh, 0))
16+ {
17+ pthread_mutex_unlock(&ctx_mutex);
18+ return -errno;
19+ }
20 while (NULL != (pdirent = ctx->readdir(ctx, (SMBCFILE *)fi->fh)))
21 {
22 if (pdirent->smbc_type == SMBC_DIR)
23
This page took 0.438255 seconds and 4 git commands to generate.