git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b45c92f
)
One more small fix in tree.c
author
Richard Sharpe
<sharpe@samba.org>
Fri, 15 Nov 2002 22:55:15 +0000
(22:55 +0000)
committer
Richard Sharpe
<sharpe@samba.org>
Fri, 15 Nov 2002 22:55:15 +0000
(22:55 +0000)
(This used to be commit
0674d5a2b0f7ee621940c93b3b58960efd91a763
)
examples/libsmbclient/tree.c
patch
|
blob
|
history
diff --git
a/examples/libsmbclient/tree.c
b/examples/libsmbclient/tree.c
index f357c0306d2b5499b43f16de10fc963ca315a963..8dc9cc408b38fe120dcf2ac1a4cb602b90ba59f2 100644
(file)
--- a/
examples/libsmbclient/tree.c
+++ b/
examples/libsmbclient/tree.c
@@
-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 */