The Samba-Bugzilla – Attachment 1459 Details for
Bug 3010
samba-3.0.14a & samba-3.0.20pre2 endless loop AIX 5.3 (jfs2) & Win98
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix going into 3.0.20a.
look (text/plain), 1.01 KB, created by
Jeremy Allison
on 2005-09-27 13:37:42 UTC
(
hide
)
Description:
Fix going into 3.0.20a.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2005-09-27 13:37:42 UTC
Size:
1.01 KB
patch
obsolete
>Index: smbd/dir.c >=================================================================== >--- smbd/dir.c (revision 10553) >+++ smbd/dir.c (working copy) >@@ -1148,8 +1148,23 @@ > void SeekDir(struct smb_Dir *dirp, long offset) > { > if (offset != dirp->offset) { >- if (offset == START_OF_DIRECTORY_OFFSET || offset == DOT_DOT_DIRECTORY_OFFSET) { >+ if (offset == START_OF_DIRECTORY_OFFSET) { > RewindDir(dirp, &offset); >+ /* >+ * Ok we should really set the file number here >+ * to 1 to enable ".." to be returned next. Trouble >+ * is I'm worried about callers using SeekDir(dirp,0) >+ * as equivalent to RewindDir(). So leave this alone >+ * for now. >+ */ >+ } else if (offset == DOT_DOT_DIRECTORY_OFFSET) { >+ RewindDir(dirp, &offset); >+ /* >+ * Set the file number to 2 - we want to get the first >+ * real file entry (the one we return after "..") >+ * on the next ReadDir. >+ */ >+ dirp->file_number = 2; > } else if (offset == END_OF_DIRECTORY_OFFSET) { > ; /* Don't seek in this case. */ > } else {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3010
:
1384
|
1386
|
1388
|
1391
|
1392
| 1459