summaryrefslogtreecommitdiffstats
path: root/source/client/client.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Correctly fix smbclient to terminate on eof from server."Karolin Seeger2008-11-171-11/+2
| | | | This reverts commit 28fa519a80bfcd30737a51ad157d134322c1fed9.
* Correctly fix smbclient to terminate on eof from server.Jeremy Allison2008-10-061-2/+11
| | | | | Jeremy. (cherry picked from commit 4dc2eb7f42bad6812d21bf4577e2901b04a5ca83)
* Fix display of POSIX ACLs.Timur2008-09-161-2/+2
| | | | (cherry picked from commit faa732c245c9296ff4cd4a56f353c3d5d1b0d202)
* Use the given name, not the absolute pathname, when printing out ACL info.Jeremy Allison2008-09-151-1/+1
| | | | | | Make this match the non-ACL case. Jeremy. (cherry picked from commit 1ca6239b9f67caafed50db5f284df00c5988ba03)
* Fix bug #5751 cannot show ACLs on DFS reported by SATOH Fumiyasu ↵Jeremy Allison2008-09-151-1/+1
| | | | | | | | <fumiyas@osstech.co.jp>. Fix for smbclient and libsmbclient. Jeremy. (cherry picked from commit 71d00ef2888834ebed2a387a111a95bac1d227ad)
* Fix a brown paper bag segfault in clitarVolker Lendecke2008-06-181-1/+1
| | | | | | | Thanks to "No Body is Perfect" from gmail, whoever that is :-) Volker (cherry picked from commit 679d8dfa390601f777bfb43c02cd921eae5edcf4)
* Security fix for CVE-2008-1105: Boundary failure when parsing SMB responsesJeremy Allison2008-05-301-1/+1
| | | | | | can result in a buffer overrun. Jeremy. (cherry picked from commit 353d9cb0fdd941781698c6b334db5f2997eef991)
* Fix client authentication with -P switch in client tools (Bug 5435).Günther Deschner2008-05-151-0/+5
| | | | | Guenther (cherry picked from commit d077ef64cd1d9bbaeb936566c2c70da508de829f)
* Fix the problem when -L is used with IPv6 addresses. Don't try toJeremy Allison2008-04-231-0/+8
| | | | | | | connect on port 139 with IPv6. Found by David Holder @ Erion. Karolin please merge to 3.2-stable. Jeremy. (cherry picked from commit c003e66ff10b23bb30aef0071ba7a3ae9579174e)
* Use rpccli_srvsvc_NetShareEnumAll in smbclient.Günther Deschner2008-03-311-15/+21
| | | | | Guenther (cherry picked from commit 1121633652ffb77dce8df9cc91b7dfc2d55fd348)
* More ssize_t->SMB_OFF_TVolker Lendecke2008-03-281-1/+1
| | | | (cherry picked from commit 8dd6458049d1b9d6849730ac19c39b049a68f302)
* Eliminate global variable in_client and a plethora of extern declarations.Derrell Lipman2008-03-271-2/+1
| | | | | Derrell (cherry picked from commit b7f34e7ef2907b498a0645ce68f2773ed7d60cdc)
* Coverity fixesMarc VanHeyningen2008-03-181-1/+4
| | | | (cherry picked from commit 3fc85d22590550f0539215d020e4411bf5b14363)
* Fix Coverity ID 563Volker Lendecke2008-03-181-5/+1
| | | | | dirmask is always set here, we've dereferenced it before anyway (cherry picked from commit e6787aa133a1b241987319486c3bc46ac6ad41af)
* Change default bufsize to 512kVolker Lendecke2008-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | I did not do any scientific tests, but the dummy test on my laptop against a w2k3 vmware shows that in this specific situation going beyond 512k seems not to gain anything anymore. smb: \> iosize 64512 iosize is now 64512 smb: \> lcd /dev smb: \> get random null getting file \random of size 104857600 as null (33453,1 kb/s) (average 19718,5 kb/s) smb: \> get random null getting file \random of size 104857600 as null (34236,0 kb/s) (average 20509,1 kb/s) smb: \> iosize 524288 iosize is now 524288 smb: \> get random null getting file \random of size 104857600 as null (49042,1 kb/s) (average 22521,9 kb/s) smb: \> get random null getting file \random of size 104857600 as null (49420,8 kb/s) (average 23432,9 kb/s) smb: \> iosize 1048576 iosize is now 1048576 smb: \> get random null getting file \random of size 104857600 as null (49420,8 kb/s) (average 24284,2 kb/s) smb: \> get random null getting file \random of size 104857600 as null (49136,3 kb/s) (average 25076,9 kb/s) (cherry picked from commit 1bcfef6a9093aa873550a263dc142c8a3f5edffd)
* Use io_bufsize as window size in smbclient get commandVolker Lendecke2008-03-071-1/+1
| | | | (cherry picked from commit e602f06cbba852a7eacd15b2511ef2571a95cc80)
* Add async cli_pull supportVolker Lendecke2008-03-071-29/+16
| | | | | | | | | | | | | This is the big (and potentially controversial) one. It took a phone call to explain to metze what is going on inside cli_pull_read_done, but I would really like everybody to understand this function. It is a very good and reasonably complex example of async programming. If we want more asynchronism in s3, this is what we will have to deal with :-) Make use of it in the smbclient "get" command. Volker (cherry picked from commit 76f9b360ee1d973630d82d401eeddce858189301)
* Revert "Add async cli_pull support"Volker Lendecke2008-03-031-15/+27
| | | | | This reverts commit 844a163458c7585e4306a21ffdae5d08e03d6e4d. (cherry picked from commit 5ab1cfda500de07ff3c712442ab2fc74eecc8886)
* Add async cli_pull supportVolker Lendecke2008-02-281-27/+15
| | | | | | | | | | | | This is the big (and potentially controversial) one. It took a phone call to explain to metze what is going on inside cli_pull_read_done, but I would really like everybody to understand this function. It is a very good and reasonably complex example of async programming. If we want more asynchronism in s3, this is what we will have to deal with :-) Make use of it in the smbclient "get" command. Volker
* Fix bug #5247 "Wildcard expansion in mget is broken"Jeremy Allison2008-02-081-71/+38
| | | | | for 3.2. Jeremy.
* Convert receive_smb_raw to NTSTATUSVolker Lendecke2008-02-021-3/+24
|
* strtok -> strtok_rVolker Lendecke2008-01-231-2/+3
|
* Fix error message for new allinfo command.Jeremy Allison2008-01-181-1/+1
| | | | Jeremy.
* Add the "allinfo" command to smbclientVolker Lendecke2008-01-181-0/+88
| | | | Modeled after the Samba4 allinfo command
* Correct comment. Default debug level of smbclient is 1, not 0.Karolin Seeger2008-01-091-1/+1
|
* Use the common -e option not the custom one.Jeremy Allison2008-01-051-1/+1
| | | | Jeremy.
* Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into ↵Jeremy Allison2008-01-041-2/+8
|\ | | | | | | v3-2-test
| * Fix idle client reading keepalive.Jeremy Allison2008-01-041-1/+1
| | | | | | | | Jeremy.
| * Refactor the crypto code after a very helpful conversationJeremy Allison2008-01-041-2/+8
| | | | | | | | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy.
* | We may use 127k read/write for encrypted connections.Jeremy Allison2007-12-301-2/+2
|/ | | | Jeremy.
* Fix error message.Jeremy Allison2007-12-291-1/+1
| | | | Jeremy.
* Added -e, --encrypt option to smbclient that immediatelyJeremy Allison2007-12-291-10/+35
| | | | | | forces encrypted smb after initial connect. Will document for 3.2 official release. Jeremy.
* Add the capability to set "smb encrypt = required"Jeremy Allison2007-12-271-2/+15
| | | | | | | | on a share (or global) and have the server reply with ACCESS_DENIED for all non-encrypted traffic (except that used to query encryption requirements and set encryption state). Jeremy.
* Add SMB encryption. Still fixing client decrypt butJeremy Allison2007-12-261-0/+43
| | | | | negotiation works. Jeremy.
* Remove next_token_nr_talloc and its associated globalVolker Lendecke2007-12-211-70/+69
| | | | | | Only client.c and clitar.c used this, I think they should carry the static themselves. Also move the a bit funny routine toktocliplist to clitar.c, the only place where it is used.
* Add smbclient support for basic mDNS browsing.Rishi Srivatsavai2007-12-171-0/+7
| | | | | Patch from Rishi Srivatsavai (bugzilla #4150), with tallocification and minor syle changes by me.
* Revert smbclient changes.Karolin Seeger2007-12-141-5/+0
| | | | | | | Patch broke option -p. Sorry for breaking the build! Karolin
* Make smbclient to display error message and usage in the case of invalid ↵Karolin Seeger2007-12-141-0/+5
| | | | options.
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-2/+2
| | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy.
* Move load_case_tables() to after logging is set up. This can logJames Peach2007-12-091-1/+2
| | | | errors.
* Fix C++ warningsVolker Lendecke2007-12-081-1/+1
|
* More null deref fixes.Jeremy Allison2007-12-071-4/+4
| | | | Jeremy.
* More null deref fixes.Jeremy Allison2007-12-071-1/+1
| | | | Jeremy
* Don't deref null pointers.Jeremy Allison2007-12-071-1/+1
| | | | Jeremy.
* Add popt to binaries in makefile. Hack clitar to compile until I fix it.Jeremy Allison2007-12-061-7/+5
| | | | Jeremy.
* Remove pstrings from client/client.c by doing a large rewrite.Jeremy Allison2007-12-061-981/+1555
| | | | | Mostly compiles.... Jeremy.
* Remove trailing slashes from service nameAndreas Schneider2007-12-061-0/+7
|
* Remove PSTRING_LEN from smbd/ nmbd/.Jeremy Allison2007-11-291-38/+47
| | | | | | | Remove pstring from libsmb/clidfs.c except for a nasty hack (that will be removed when pstrings are gone from client/). Jeremy.
* More pstring removal. This one was tricky. I had to addJeremy Allison2007-11-151-7/+9
| | | | | | one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy.
* Remove the horror that was the global smb_rw_error.Jeremy Allison2007-11-051-1/+1
| | | | | | | | | | Each cli struct has it's own local copy of this variable, so use that in client code. In the smbd server, add one static to smbd/proccess.c and use that inside smbd. Fix a bunch of places where smb_rw_error could be set by calling read_data() in places where we weren't reading from the SMB client socket (ie. winbindd). Jeremy.