mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
One more small fix in tree.c
This commit is contained in:
parent
b0772a1a05
commit
0674d5a2b0
@ -745,8 +745,6 @@ int main( int argc,
|
||||
|
||||
/* Now, get the items in smb:/// and add them to the tree */
|
||||
|
||||
dirp = (struct smbc_dirent *)dirbuf;
|
||||
|
||||
while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
|
||||
sizeof(dirbuf))) != 0) {
|
||||
|
||||
@ -759,6 +757,8 @@ int main( int argc,
|
||||
|
||||
}
|
||||
|
||||
dirp = (struct smbc_dirent *)dirbuf;
|
||||
|
||||
fprintf(stdout, "Dir len: %u\n", err);
|
||||
|
||||
while (err > 0) { /* Extract each entry and make a sub-tree */
|
||||
|
Loading…
Reference in New Issue
Block a user