summaryrefslogtreecommitdiffstats
path: root/source/libsmb
Commit message (Collapse)AuthorAgeFilesLines
...
* This is a big, rather ugly patch. Whilst investigating the files not truncatedJeremy Allison2001-03-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | when copying to a full disk problem, I discovered that we were not allowing the delete on close flag to be set properly, this led to other things, and after investigation of the proper delete on close semantics and their relationship to the file_share_delete flag I discovered there were some cases where we weren't doing the deny modes properly. And this after only 5 years working on them..... :-) :-). So here's the latest attempt. I realised the delete on close flag needs to be set across all smbds with a dev/ino pair open - in addition, the delete on close flag, allow share delete and delete access requested all need to be stored in the share mode tdb. The "delete_on_close" entry in the fsp struct is now redundant and should really be removed. This may also mean we can get rid of the "iterate_fsp" calls that I didn't like adding in the first place. Whilst doing this patch, I also discovered we needed to do the se_map_generic() call for file opens and POSIX ACL mapping, so I added that also. This code, although ugly, now passes the deny mode torture tests plus the delete on close tests I added. I do need to add one more multiple connection delete on close test to make sure I got the semantics exactly right, plus we should also (as Andrew suggested) move to random testing here. The good news is that NT should now correctly delete the file on disk full error when copying to a disk :-). Jeremy.
* Added cli_nt_delete_on_close() call to allow flag to be set for torture tests.Jeremy Allison2001-03-291-0/+41
| | | | Jeremy.
* Added cli_nt_create_full() as a way to get at all the ntcreate parameters.Jeremy Allison2001-03-291-6/+20
| | | | | Used in smbtorture mods. Re-cast cli_nt_create() as a call to cli_nt_create_full(). Jeremy.
* rename of 16 new_smb_io functions to smb_io_* for consistency sakeGerald Carter2001-03-281-10/+10
| | | | (merge from 2.2)
* More memory leaks fixed courtesy of Insure ...Richard Sharpe2001-03-281-11/+44
|
* merge from 2.2.Gerald Carter2001-03-271-3/+3
|
* 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
* reverted the rename of new_spoolss_io_r_enumprinterdrivers()Gerald Carter2001-03-191-1/+1
|
* fixed some compilation errors with IRIX ccAndrew Tridgell2001-03-181-2/+2
|
* added STR_ASCII support to clistr_pull()Andrew Tridgell2001-03-162-5/+6
|
* addprinter and adddriver are working now :-)Gerald Carter2001-03-151-0/+106
|
* added getdriverdir and cleaned up the PRINTER_DRIVER_CTR structGerald Carter2001-03-151-2/+94
|
* added getdriver and enumdrivers commands. Also fixedGerald Carter2001-03-151-8/+217
| | | | | enumprinters so that it works as well. Couple of other misc fixes while we're working on rpcclient.
* more updates. several spoolss commands added as placeholdersGerald Carter2001-03-151-1/+1
| | | | to be filled in one at a time.
* set of changes in the beginning of bringing rpcclient changesGerald Carter2001-03-143-33/+35
| | | | | | | | | | | | | | | | | back to working order. The main change is that the cli_*() RPC functions from libsmb/*.c now should accept a struct cli_state*. The reason for this is that rpcclient should establish the connection to the server at startup so that it is not necessary to keep the clear test or password hash in memory for each command. enumports and enumprinters now works as well. lsa* functions have been tested. SAMR calls may or may not work (one of the core dumps I know), but it compiles :-) jerry
* simpler clistr interface which handles individual packets havingAndrew Tridgell2001-03-144-60/+18
| | | | unicode bit set differently to capabilities
* Ok - everything now compiles in HEAD (at least the default stuff). WeJeremy Allison2001-03-111-1/+1
| | | | | should now be ready for the trivial winbindd port..... (Tim ? :-). Jeremy.
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-3/+0
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* to use the same macros in the client and server rename the CLISTR_Andrew Tridgell2001-03-107-74/+74
| | | | macros to STR_
* Missed some prs_inits.Jeremy Allison2001-03-092-29/+29
| | | | Jeremy.
* Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.Jeremy Allison2001-03-092-14/+14
| | | | | | | | | We were reading the endainness in the RPC header and then never propagating it to the internal parse_structs used to parse the data. Also removed the "align" argument to prs_init as it was *always* set to 4, and if needed can be set differently on a case by case basis. Now ready for AS/U testing when Herb gets it set up :-). Jeremy.
* 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 :-(
* Fixed compiler warning.Tim Potter2001-03-011-4/+4
|
* Fix some errors uncovered in libsmbclient by the test suiteRichard Sharpe2001-02-262-120/+57
| | | | | Fix some problems with unused variables and reaching the end of a nonvoid function
* made some LANMAN1 wildcard progressAndrew Tridgell2001-02-262-9/+16
| | | | it now handles -M LANMAN1 -f '.x' -m '?x' nicely
* fixed a bug in non-terminated unicode strings with clistr_pull()Andrew Tridgell2001-02-261-1/+1
|
* add cli_list_new() for forced new protocol listingAndrew Tridgell2001-02-261-8/+18
|
* use cli_list_old() when negotiating the older protocolsAndrew Tridgell2001-02-251-0/+4
|
* neater negprot code using the new cli_setup_bcc() callAndrew Tridgell2001-02-251-7/+2
|
* Separated reg code into interface & implementation.Jeremy Allison2001-02-251-5/+1
| | | | | libsmb/namequery.c: Removed ununsed variables. Jeremy.
* make sure we don't free non-allocated dataAndrew Tridgell2001-02-221-7/+10
|
* cope better with broken filer expectationsAndrew Tridgell2001-02-221-2/+2
|
* converted the last couple of functions in libsmb to be unicodeAndrew Tridgell2001-02-212-14/+18
| | | | the whole of libsmb should now do unicode where appropriate
* the unicode conversion of our client code is complete enough to beAndrew Tridgell2001-02-216-95/+24
| | | | | | enabled by default you can disable it by setting the environment variable CLI_FORCE_ASCII
* reverted richards cli_NetServerEnum changes - they broke lots of thingsAndrew Tridgell2001-02-211-56/+12
|
* added support for a CLISTR_ASCII flag so we can use a uniformAndrew Tridgell2001-02-211-4/+5
| | | | interface for ascii-only fields
* yipee! client unicode now works well with ntAndrew Tridgell2001-02-203-8/+15
|
* converted a bunch more fnsAndrew Tridgell2001-02-203-40/+56
|
* converted nt_create and setatrAndrew Tridgell2001-02-201-9/+10
|
* - neater setting of bccAndrew Tridgell2001-02-205-25/+29
| | | | - converted cli_rename and cli_unlink
* converted cli_open()Andrew Tridgell2001-02-201-7/+8
|
* converted cli_chkpath()Andrew Tridgell2001-02-201-3/+4
|
* converted cli_list()Andrew Tridgell2001-02-203-34/+57
|
* converted cli_mkdir()Andrew Tridgell2001-02-201-3/+4
|
* pipe opening now works with unicodeAndrew Tridgell2001-02-205-29/+45
|
* initial client side unicode support (needed for netapp filer)Andrew Tridgell2001-02-203-41/+213
| | | | | | | | | | | | | | | I've currently got this code disabled by default as it is incomplete. You enable it by setting a USE_UNICODE environment variable. Once the support is complete this check will be removed and the CAP_UNICODE capability bit will be the sole determination of whether the client library code uses unicode right now I have converted session_setup and tconx. I will do more fns over the next few days. see clistr.c for the new client side string interface. Luckily it tends to make the code smaller and neater while adding unicode support.