summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmbclient.c
AgeCommit message (Collapse)AuthorFilesLines
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)
2001-03-06Implement smbc_lseekdir, but it will have to change ... because it has theRichard Sharpe1-1/+52
wrong interface defn. (This used to be commit 317e369c3e20206c9f8b36a91dc666ebeede68ec)
2001-03-05smb.h: add one error code for no such printer jobRichard Sharpe1-3/+28
libsmbclient.c: fix problems with return codes on smbc_unlink_print_job (This used to be commit 7557f9145ccdced3fcebdd20e1eb6fc5a27abda2)
2001-03-01Fix two problems identified by the test suite, one a major oneRichard Sharpe1-3/+61
where I was indexing through a NULL pointer :-( (This used to be commit 5f1ea70e110bd3b97a4c75b2fe0edef22847550b)
2001-02-26Fix some errors uncovered in libsmbclient by the test suiteRichard Sharpe1-115/+42
Fix some problems with unused variables and reaching the end of a nonvoid function (This used to be commit 44986f397ae647aa790422737a839443efb99920)
2001-02-21the unicode conversion of our client code is complete enough to beAndrew Tridgell1-6/+0
enabled by default you can disable it by setting the environment variable CLI_FORCE_ASCII (This used to be commit 4d59c08c5e6f54c0d6ced7650750cb987e77b6c9)
2001-02-19Opps, last one did not commit the correct changes ... Here they are.Richard Sharpe1-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. (This used to be commit debb723194f903c7b3af61f93949df062985e218)
2001-02-18Fixes to libsmbclient so it will work when browsing real Windows systems whichRichard Sharpe1-2/+2
only respond to port 138 when dealing with NetBIOS datagrams. We use the unexpected packed database. (This used to be commit 620cc34015ab16d25f7ef7e13cbc3d0f669da11e)
2001-02-12Added commented/documented version of libsmbclient.h and fixed up a smallRichard Sharpe1-3/+1
problem in libsmbclient.c where we no longer pass the workgroup. (This used to be commit 3c6611434601a45ba448f0313397104c7cea616c)
2001-02-06Fix problems in libsmbclient with pring job struct plus add implementationRichard Sharpe1-0/+96
of last two print routines ... (This used to be commit 7c50af3b71eeedfef8ed0d5771c2dc578fa95741)
2001-02-05Implement two printing related functions and start the remaining two.Richard Sharpe1-0/+63
(This used to be commit c19559a286c3ec6dedefbd2423aa5738edd9ba41)
2001-02-04Fix some further small bugs in libsmbclient to make it pass theRichard Sharpe1-7/+56
Caldera test suite and start to add the printing routines. (This used to be commit 838cfad404ef648ee7909f449264afa4db60fa3b)
2001-01-29Fix some bugs and prepare for some other bug fixes ...Richard Sharpe1-6/+67
(This used to be commit 4ae7812353c0ed088fb1ae4cd79c99daab363d1c)
2001-01-24Fix a problem with smbc_unlink on directories where it was returning EACCESRichard Sharpe1-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. (This used to be commit 68614bac5a1a4109fdfb728aeae6956b13c64d8f)
2001-01-14Fixed bugs relating to Win2K and the need for a codepage so that unicodeRichard Sharpe1-3/+12
strings can be handled correctly. (This used to be commit 5629b097d4f04ad45c66f270bd58f08d7c717353)
2001-01-12Some more bug fixes plus implementations of smbc_mkdir and smbc_rmdir,Richard Sharpe1-0/+157
both tested ... More later. (This used to be commit 66bb40153a9ff38692356cadfad89cf91439032e)
2001-01-12Many bug fixes to the libsmbclient.c code plusRichard Sharpe1-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 (This used to be commit 7f559c1a7307b91218d5984f48f65e7dc0ab66b9)
2001-01-08Add support for logging to wherever smb.conf specifies.Richard Sharpe1-2/+8
(This used to be commit cc5a2db8a0c195b328b93fff566bc1120aeef54a)
2001-01-07More bug fixen ...Richard Sharpe1-2/+2
(This used to be commit a13b5ef7bba86d42df98b4f493aa2ea9e1caa6c3)
2001-01-07More fixes and implementation bits and pieces for libsmbclientRichard Sharpe1-11/+161
(This used to be commit 991f6907ac200d53b95a206d65844a0c0830caae)
2001-01-06Fix some more bugs in libsmbclient.c and add functionality to tree.cRichard Sharpe1-0/+40
(This used to be commit d6cef8877a7ed80329b3ba67231a94601fcfd060)
2001-01-06Fix a minor problem with listing servers in a workgroup and add aRichard Sharpe1-3/+11
gtk+ test application that tests out some of this stuff ... (This used to be commit 606c4aeceac0bd1823ec6376df3ca5016007ab38)
2001-01-05The latest changes to libsmbclient ...Richard Sharpe1-21/+455
It can now do a directory listing for workgroups, servers, and shares, and, with a bit more effort, it will be able to list directories and files. I also does not request a username and password for the IPC$ share, but it should if the first attempt to connect fails. (This used to be commit 38ff91c5059a32c7ad2fd6074697c7c7f68a878c)
2000-12-26First pass at the libsmbclient code ...Richard Sharpe1-0/+1140
This code handles the basic stuff and compiles and links under Linux, but I do not know about any other operating systems. Now onto directory listing routines, including those that list workgroups, servers, etc. Nothing is built automatically yet, you have to make client/testsmbc to build the library and test program. Also, no make install targets are defined for libsmbclient.so as yet, either. Would be good if people test on operating systems other than Linux. (This used to be commit 51c0436a50e9f9274cee9de043bbefc93aff8011)