summaryrefslogtreecommitdiff
path: root/examples/libsmbclient
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2006-09-03 01:37:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:39:48 -0500
commit44c1504c032ffa0f0b9cc2333fa0e3a05a03bf48 (patch)
treed08cc47ba502c3d5fb0dba442c5e2b3421fc6725 /examples/libsmbclient
parent40665edf5e6043ad5a8f46731a79ec1d5835b62a (diff)
downloadsamba-44c1504c032ffa0f0b9cc2333fa0e3a05a03bf48.tar.gz
samba-44c1504c032ffa0f0b9cc2333fa0e3a05a03bf48.tar.bz2
samba-44c1504c032ffa0f0b9cc2333fa0e3a05a03bf48.zip
r18012: Should fix bug 4018.
NetApp filers expect paths in Open AndX Request to have a leading slash. Windows clients send the leading slash, so we should too. (This used to be commit fc5b6e4bd8a67994b0c56d1223c74d064164420f)
Diffstat (limited to 'examples/libsmbclient')
-rw-r--r--examples/libsmbclient/testread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/libsmbclient/testread.c b/examples/libsmbclient/testread.c
index 1f1219ca84..d59fc70ec1 100644
--- a/examples/libsmbclient/testread.c
+++ b/examples/libsmbclient/testread.c
@@ -55,6 +55,7 @@ int main(int argc, char * argv[])
{
ret = smbc_read(fd, buffer, sizeof(buffer));
savedErrno = errno;
+ if (ret > 0) fwrite(buffer, 1, ret, stdout);
} while (ret > 0);
smbc_close(fd);