summaryrefslogtreecommitdiffstats
path: root/source/libsmb/libsmbclient.c
Commit message (Collapse)AuthorAgeFilesLines
* Some fix ups but committing so Andrew can look at the problem I have.Richard Sharpe2002-07-131-7/+1
|
* Fix up the include file that had problems as well.Richard Sharpe2002-07-131-11/+0
|
* Fix some multibyte problems that I forgot about.Richard Sharpe2002-07-131-6/+6
|
* Commit Tom Jansen's changes to head.Richard Sharpe2002-07-111-819/+899
|
* Make these functions static. These are not mentioned in the external header,Andrew Bartlett2002-07-031-4/+4
| | | | | | | | and appear to be functions for internal use. Richard: please check. Andrew Bartlett
* removed the wins name registration code from libsmbclientAndrew Tridgell2002-06-261-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.
* Renamed get_nt_error_msg() to nt_errstr().Tim Potter2002-03-171-1/+1
|
* getpid() -> sys_getpid()Tim Potter2002-03-141-1/+1
|
* bcopy must DIE ! Stop people creeping use of bcopy back into the codeJeremy Allison2002-02-261-2/+2
| | | | | (and yes I know who you are..... :-). Jeremy.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Removed unused static variable.Tim Potter2002-01-251-1/+0
|
* Fix another memory leak spotted by Tom Jansen.Richard Sharpe2001-11-271-0/+1
|
* Got medieval on another pointless extern. Removed extern struct ipzeroTim Potter2001-11-261-3/+2
| | | | | | | and replaced with two functions: void zero_ip(struct in_adder *ip); BOOL is_zero_ip(struct in_addr ip);
* W2K doesn't seem to respond to *#0 names in node status. Ensure nameJeremy Allison2001-11-211-2/+2
| | | | | lookup uses password server parameter when looking for PDCs. Jeremy.
* Fix up the build again...Andrew Bartlett2001-11-211-1/+1
| | | | Andrew Bartlett
* Fix up libsmbclient in head.Richard Sharpe2001-11-211-1366/+1413
| | | | | Apply the patches from Tom Jansen, get rid of fprintfs and change them to DEBUGs, etc ...
* Fix problems with lp_workgroup() being passed to routines that will modifyRichard Sharpe2001-11-171-24/+44
| | | | it and fix smb://<IP-addr>.
* Fix for @ in pathname from Kian Win.Jeremy Allison2001-10-221-1/+5
| | | | Jeremy.
* move to SAFE_FREE()Simo Sorce2001-09-171-46/+34
|
* it now all compiles - so try enabling it by default and see what explodes on ↵Andrew Tridgell2001-09-041-2/+2
| | | | the build farm
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-271-1/+1
|
* converted smbd to use NTSTATUS by defaultAndrew Tridgell2001-08-271-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
* Fixes for new client error api.Tim Potter2001-08-101-2/+2
|
* A rewrite of the error handling in the libsmb client code. I've separatedTim Potter2001-08-101-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.
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-5/+5
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-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.
* Fix a stupid typo ...Richard Sharpe2001-06-271-2/+2
|
* Fix up the problems with calling smbc_init multiple times.Richard Sharpe2001-06-071-0/+6
|
* Change EUCLEAN to EINVAL, as some systems do not have EUCLEAN, and EINVALRichard Sharpe2001-05-151-24/+24
| | | | is a better return code anyway (I knew that :-)
* More memory leaks fixed courtesy of Insure ...Richard Sharpe2001-03-281-11/+44
|
* One small Insure fix for a memory leak. More fixes to come perhaps ...Richard Sharpe2001-03-271-2/+52
| | | | | Also fixed an error return for smbc_rmdir so that we can distinguish between EACCES and ENOTEMPTY
* More SGI type fixes ...Richard Sharpe2001-03-091-5/+7
|
* Fix the definition and implementation of smbc_lseekdir ...Richard Sharpe2001-03-071-6/+7
|
* Implement smbc_lseekdir, but it will have to change ... because it has theRichard Sharpe2001-03-061-1/+52
| | | | wrong interface defn.
* smb.h: add one error code for no such printer jobRichard Sharpe2001-03-051-3/+28
| | | | libsmbclient.c: fix problems with return codes on smbc_unlink_print_job
* Fix two problems identified by the test suite, one a major oneRichard Sharpe2001-03-011-3/+61
| | | | where I was indexing through a NULL pointer :-(
* Fix some errors uncovered in libsmbclient by the test suiteRichard Sharpe2001-02-261-115/+42
| | | | | Fix some problems with unused variables and reaching the end of a nonvoid function
* the unicode conversion of our client code is complete enough to beAndrew Tridgell2001-02-211-6/+0
| | | | | | enabled by default you can disable it by setting the environment variable CLI_FORCE_ASCII
* Opps, last one did not commit the correct changes ... Here they are.Richard Sharpe2001-02-191-7/+31
| | | | | | This now uses a lookup on <DOMAIN><1D> and then does a name status query to the IP address returned to find the name of the server. Seems to work well against Samba, Win9X, WinNT and Win2K.
* Fixes to libsmbclient so it will work when browsing real Windows systems whichRichard Sharpe2001-02-181-2/+2
| | | | | | only respond to port 138 when dealing with NetBIOS datagrams. We use the unexpected packed database.
* Added commented/documented version of libsmbclient.h and fixed up a smallRichard Sharpe2001-02-121-3/+1
| | | | problem in libsmbclient.c where we no longer pass the workgroup.
* Fix problems in libsmbclient with pring job struct plus add implementationRichard Sharpe2001-02-061-0/+96
| | | | of last two print routines ...
* Implement two printing related functions and start the remaining two.Richard Sharpe2001-02-051-0/+63
|
* Fix some further small bugs in libsmbclient to make it pass theRichard Sharpe2001-02-041-7/+56
| | | | Caldera test suite and start to add the printing routines.
* Fix some bugs and prepare for some other bug fixes ...Richard Sharpe2001-01-291-6/+67
|
* Fix a problem with smbc_unlink on directories where it was returning EACCESRichard Sharpe2001-01-241-1/+39
| | | | | instead of EPERM and a problem with SMBC_OPEN where it ignored an error from the underlying cli_open routine and cheerfully returned a bogus FD.
* Fixed bugs relating to Win2K and the need for a codepage so that unicodeRichard Sharpe2001-01-141-3/+12
| | | | strings can be handled correctly.
* Some more bug fixes plus implementations of smbc_mkdir and smbc_rmdir,Richard Sharpe2001-01-121-0/+157
| | | | | | both tested ... More later.
* Many bug fixes to the libsmbclient.c code plusRichard Sharpe2001-01-121-38/+137
| | | | | | | - an implementation of smbc_readdir - extensions to tree.c to show files in a second window - changes to auth_fn to provide buffers for username, password, etc from caller rather than callee
* Add support for logging to wherever smb.conf specifies.Richard Sharpe2001-01-081-2/+8
|