summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmbclient.c
AgeCommit message (Collapse)AuthorFilesLines
2003-04-06Fix the handling of smb.conf in libsmbclient.Richard Sharpe1-6/+9
The right thing to do is to try for the user's local one in ~/.smbc/smb.conf, and if that fails, try the one in dyn_CONFIGFILE, and if that fails, keep going with the defaults but log a message. (This used to be commit 15fa48d19d178cf8bf214ea02f6c7a4c38890f71)
2003-04-05Fix debug handling in libsmbclient.c.Richard Sharpe1-2/+2
Also, PLEASE, PLEASE, PLEASE, do not include bashism and Cisms in shell scripts. (This used to be commit 7f6367aac8c5440e1d4e97b26571b205140488ae)
2003-04-04Some more good stuff from coolo.Richard Sharpe1-42/+23
(This used to be commit 41b320ffc560117c0184999e30cc69723f40acbe)
2003-04-04Some castiness for Don McCall.Richard Sharpe1-2/+2
(This used to be commit b03ac852a86cf9f436ad2b994e09fb08dd929674)
2003-04-02More of coolo's changes for UTF-8 and some minor fixes of mine.Richard Sharpe1-17/+37
(This used to be commit 21a99fdec321c44e31b69589248ff8d1cb927577)
2003-04-02Commit some more fixes for Coolo ...Richard Sharpe1-43/+24
(This used to be commit e1a159c55fdeaa1620a3147105be4efd205560ba)
2003-04-02Add const (from a patch by Stephan Kulow <coolo@kde.org>)Jelmer Vernooij1-10/+11
(This used to be commit 8b5ad24231e5001e612c5fd4bbde2762caef5856)
2003-03-28More patches from coolo. One of these functions needs to be movedRichard Sharpe1-42/+78
elsewhere so other code can use it. (This used to be commit b988e16b7da824864cac6b69910ade27885e7f50)
2003-03-28Some fixes to URL syntax from coolo.Richard Sharpe1-2/+85
(This used to be commit de49c3f48f85519b31e797730eca82cb979098dc)
2003-03-21Patch from colo (on IRC) to get libsmbclient building due to pstring/fstringAndrew Bartlett1-19/+19
issues. Also pick up these link failures at compile time (rather than runtime). Andrew Bartlett (This used to be commit 23c7342bc40daffbcd70ef04727cae2c2b2c366b)
2003-01-13Make sure that those cleanups actually went in.Richard Sharpe1-2/+2
(This used to be commit 9a38e378115a1c36d0cd7c41f4c5767c23b4eb3f)
2002-11-13Try to bring libsmbclient in line with the new global_myname stuffAndrew Bartlett1-3/+2
(This used to be commit e424b08050b44b1b52abd2af76b1b4dc8b100095)
2002-11-04The fixes from Tom plus a minor update from me.Richard Sharpe1-70/+99
(This used to be commit 6db6a48711f51ee6add32953506cd5db33939a1b)
2002-09-28Include ../include/libsmbclient.h instead of just libsmbclient.h - we don't ↵Jelmer Vernooij1-1/+1
want to include the globally installed libsmbclient.h - found by jht (This used to be commit e35a5da3a75c74ab066bff5e0f60d30deb008451)
2002-08-27merge from SAMBA_2_2Gerald Carter1-1/+1
(This used to be commit b58ddacf73589870252eea52da68841e7294672d)
2002-08-25Use a function that actually exists for the keepalive send.Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 82e7212bbbeefce873291c2fdb3b04ae1e6c26d6)
2002-08-22A few fixes towards libsmbclient and rpcclient - get pointer types right andAndrew Bartlett1-5/+3
try to keep to functions inside libsmbclient. Andrew Bartlett (This used to be commit 340bc31fdb031d79fa87de27c2c46215dd8113a3)
2002-07-13Some fix ups but committing so Andrew can look at the problem I have.Richard Sharpe1-7/+1
(This used to be commit 146ba3eb49bade732d57691d8ce181ef6608e0cb)
2002-07-13Fix up the include file that had problems as well.Richard Sharpe1-11/+0
(This used to be commit 753df0b89767261420f242da21d5dfb5403c966b)
2002-07-13Fix some multibyte problems that I forgot about.Richard Sharpe1-6/+6
(This used to be commit 481a70f4f005a778a24e2193f8e760217ee3c946)
2002-07-11Commit Tom Jansen's changes to head.Richard Sharpe1-819/+899
(This used to be commit d3fdce07ab5955abd1f923127ae9eb5006aea505)
2002-07-03Make these functions static. These are not mentioned in the external header,Andrew Bartlett1-4/+4
and appear to be functions for internal use. Richard: please check. Andrew Bartlett (This used to be commit cb61e61a113dede4a0b0f5d31d0ec89c4b6ecd65)
2002-06-26removed the wins name registration code from libsmbclientAndrew Tridgell1-2/+0
it is *completely* bogus for our client code to be doing wins registrations. Not only is it slow as hell (think about when a wins server is down) but how the heck is going to answer the queries that will later come in for our name? And what happens when libsmbclient sends registrations and nmbd then gets the WACK response from the wins server? we end up losing our name! Name registration is a job for nmbd, not for clients. (This used to be commit 62774923ffdce15eded0f37ba99e33e9cd7a358c)
2002-03-17Renamed get_nt_error_msg() to nt_errstr().Tim Potter1-1/+1
(This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
2002-03-14getpid() -> sys_getpid()Tim Potter1-1/+1
(This used to be commit a3cea5e9ae3b53ecbc45e61a39cbce0ca1b916aa)
2002-02-26bcopy must DIE ! Stop people creeping use of bcopy back into the codeJeremy Allison1-2/+2
(and yes I know who you are..... :-). Jeremy. (This used to be commit 330b0df960329bcf4696b8fa4a7357e6c456f74e)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-25Removed unused static variable.Tim Potter1-1/+0
(This used to be commit 7c2d7205938ddd958b8399599febbf63ac4c8a88)
2001-11-27Fix another memory leak spotted by Tom Jansen.Richard Sharpe1-0/+1
(This used to be commit 6e2c06a6e6173e68a75fd1adfaa73fe9a9210fef)
2001-11-26Got medieval on another pointless extern. Removed extern struct ipzeroTim Potter1-3/+2
and replaced with two functions: void zero_ip(struct in_adder *ip); BOOL is_zero_ip(struct in_addr ip); (This used to be commit 778f5f77a66cda76348a7c6f64cd63afe2bfe077)
2001-11-21W2K doesn't seem to respond to *#0 names in node status. Ensure nameJeremy Allison1-2/+2
lookup uses password server parameter when looking for PDCs. Jeremy. (This used to be commit 54c968913d6553c6d834b068234ab176917075eb)
2001-11-21Fix up the build again...Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit a34c07377b1de61e145f699047474a82962ccd5b)
2001-11-21Fix up libsmbclient in head.Richard Sharpe1-1366/+1413
Apply the patches from Tom Jansen, get rid of fprintfs and change them to DEBUGs, etc ... (This used to be commit 7ac404c85303c9c3fbd48054fc4876bd4bc1567b)
2001-11-17Fix problems with lp_workgroup() being passed to routines that will modifyRichard Sharpe1-24/+44
it and fix smb://<IP-addr>. (This used to be commit ac2562a0fb7eafd94d53a2c36d33e8f5236d60ff)
2001-10-22Fix for @ in pathname from Kian Win.Jeremy Allison1-1/+5
Jeremy. (This used to be commit 070fd5180fef921efb363ff24f04a298254f108b)
2001-09-17move to SAFE_FREE()Simo Sorce1-46/+34
(This used to be commit 48fc6a6cd52e01b287030fbbf0aa08a6814c5e11)
2001-09-04it now all compiles - so try enabling it by default and see what explodes on ↵Andrew Tridgell1-2/+2
the build farm (This used to be commit 5bb7e4f0f65edf1db20245f403cbe81833134240)
2001-08-27converted another bunch of stuff to NTSTATUSAndrew Tridgell1-1/+1
(This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)
2001-08-27converted smbd to use NTSTATUS by defaultAndrew Tridgell1-1/+1
major changes include: - added NSTATUS type - added automatic mapping between dos and nt error codes - changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT() these calls auto-translate to the client error code system - got rid of the cached error code and the writebmpx code We eventually will need to also: - get rid of BOOL, so we don't lose error info - replace all ERROR_DOS() calls with ERROR_NT() calls but that is too much for one night (This used to be commit 83d9896c1ea8be796192b51a4678c2a3b87f7518)
2001-08-10Fixes for new client error api.Tim Potter1-2/+2
(This used to be commit 9c57e45d443a3cf6215318d1355cac18ff57a8b5)
2001-08-10A rewrite of the error handling in the libsmb client code. I've separatedTim Potter1-12/+21
out the error handling into a bunch of separate functions rather than all being handled in one big function. Fetch error codes from the last received packet: void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *num); uint32 cli_nt_error(struct cli_state *); Convert errors to UNIX errno values: int cli_errno_from_dos(uint8 eclass, uint32 num); int cli_errno_from_nt(uint32 status); int cli_errno(struct cli_state *cli); Detect different kinds of errors: BOOL cli_is_dos_error(struct cli_state *cli); BOOL cli_is_nt_error(struct cli_state *cli); BOOL cli_is_error(struct cli_state *cli); This also means we now support CAP_STATUS32 as we can decode and understand NT errors instead of just DOS errors. Yay! Ported a whole bunch of files in libsmb to use this new API instead of the just the DOS error. (This used to be commit 6dbdb0d813f3c7ab20b38baa1223b0b479aadec9)
2001-07-04strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell1-5/+5
can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-07-04The big character set handling changeover!Andrew Tridgell1-4/+0
This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-06-27Fix a stupid typo ...Richard Sharpe1-2/+2
(This used to be commit 8a873b5dfb52393541c36fea0a5082771a6c8d63)
2001-06-07Fix up the problems with calling smbc_init multiple times.Richard Sharpe1-0/+6
(This used to be commit 832227a72b9c1d965736128ff84ffa235df6ecaf)
2001-05-15Change EUCLEAN to EINVAL, as some systems do not have EUCLEAN, and EINVALRichard Sharpe1-24/+24
is a better return code anyway (I knew that :-) (This used to be commit 0bf2797b183b4d709a401ebdb2d5f3d5b1c907af)
2001-03-28More memory leaks fixed courtesy of Insure ...Richard Sharpe1-11/+44
(This used to be commit 4fc385ca6830cb2ac6198501966088fbed27330e)
2001-03-27One small Insure fix for a memory leak. More fixes to come perhaps ...Richard Sharpe1-2/+52
Also fixed an error return for smbc_rmdir so that we can distinguish between EACCES and ENOTEMPTY (This used to be commit f204901fcc11eb3299cc6c7f3793fc3c7bd6bc57)
2001-03-09More SGI type fixes ...Richard Sharpe1-5/+7
(This used to be commit 26d7d8af2903b1f24da51c78e12f54a1d42ed798)
2001-03-07Fix the definition and implementation of smbc_lseekdir ...Richard Sharpe1-6/+7
(This used to be commit e628d80d1e0f6ec87b61baeaf64019b43bf7dac8)