Bug 4750 - smbc_telldir_ctx() returns wrong offset
smbc_telldir_ctx() returns wrong offset
Status: RESOLVED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: libsmbclient
3.0.25b
All All
: P3 normal
: none
Assigned To: Derrell Lipman
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-27 12:00 UTC by SATOH Fumiyasu
Modified: 2007-08-13 13:09 UTC (History)
0 users

See Also:


Attachments
Patch (831 bytes, patch)
2007-06-27 12:03 UTC, SATOH Fumiyasu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description SATOH Fumiyasu 2007-06-27 12:00:00 UTC
smbc_telldir_ctx() returns a pointer to smbc_dir_list (dir->dir_next)
as an offset, but smbc_check_dir_ent(), called from smbc_lseekdir_ctx(),
compares an offset with a pointer to smbc_dirent.
Comment 1 SATOH Fumiyasu 2007-06-27 12:03:06 UTC
Created attachment 2787 [details]
Patch

Return dir->dir_next->dirent (or -1 on the ending of the list).
Comment 2 Derrell Lipman 2007-08-13 13:09:00 UTC
Patch applied.  Thanks!