summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2001-04-15Fix from "Darrin B. Jewell" <jewell@bdi.com> to allow anything other thanJeremy Allison1-4/+12
nmbd to talk to nmbd if it's a WINS server. Jeremy. (This used to be commit 0e8147aecaf6941c77fd05b4b705ca31c1ec5760)
2001-04-13Merge of Andrew's changes in 2.2.Jeremy Allison1-1/+1
Jeremy. (This used to be commit fc76681812b1469208ad6c8847afdfc68bc6db49)
2001-04-08Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2-7/+7
Jeremy. (This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
2001-03-30This is a big, rather ugly patch. Whilst investigating the files not truncatedJeremy Allison1-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. (This used to be commit 51987684bd231c744da2e5f3705fd236d5616173)
2001-03-29Added cli_nt_delete_on_close() call to allow flag to be set for torture tests.Jeremy Allison1-0/+41
Jeremy. (This used to be commit 6f7d9e29e4d3a17254ff0ae20c0da63eacded7fe)
2001-03-29Added cli_nt_create_full() as a way to get at all the ntcreate parameters.Jeremy Allison1-6/+20
Used in smbtorture mods. Re-cast cli_nt_create() as a call to cli_nt_create_full(). Jeremy. (This used to be commit f602fa1205e99541e825ccae8502c35cd0e7ccfc)
2001-03-28rename of 16 new_smb_io functions to smb_io_* for consistency sakeGerald Carter1-10/+10
(merge from 2.2) (This used to be commit ea963a648b889da9e47661c61c7fafe13b277e75)
2001-03-28More memory leaks fixed courtesy of Insure ...Richard Sharpe1-11/+44
(This used to be commit 4fc385ca6830cb2ac6198501966088fbed27330e)
2001-03-27merge from 2.2.Gerald Carter1-3/+3
(This used to be commit 817258f1174d27d74e8b21ffb5f1384db2238007)
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-19reverted the rename of new_spoolss_io_r_enumprinterdrivers()Gerald Carter1-1/+1
(This used to be commit fd6bfe03f4454272bdce59c78ae7148a72caaf18)
2001-03-18fixed some compilation errors with IRIX ccAndrew Tridgell1-2/+2
(This used to be commit e430ded56e9c15a462a171e6350f1eddefa8dd11)
2001-03-16added STR_ASCII support to clistr_pull()Andrew Tridgell2-5/+6
(This used to be commit 797293811ef0a79eecc460c471135c89090f8c06)
2001-03-15addprinter and adddriver are working now :-)Gerald Carter1-0/+106
(This used to be commit 0cb7639cef4a1ba0d56d7e58bd7e03343cbf229d)
2001-03-15added getdriverdir and cleaned up the PRINTER_DRIVER_CTR structGerald Carter1-2/+94
(This used to be commit 5d321673850e1e28e1bee4093705d7e319421687)
2001-03-15added getdriver and enumdrivers commands. Also fixedGerald Carter1-8/+217
enumprinters so that it works as well. Couple of other misc fixes while we're working on rpcclient. (This used to be commit 83d6bc4454f0cda581d26de32a4fcaad42431b34)
2001-03-15more updates. several spoolss commands added as placeholdersGerald Carter1-1/+1
to be filled in one at a time. (This used to be commit 6aaac3766324302b995b5a55876bf2ab74af1ff8)
2001-03-14set of changes in the beginning of bringing rpcclient changesGerald Carter3-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 (This used to be commit d98ac8852ae6b39b6fcff92c346ba56d9e63c518)
2001-03-14simpler clistr interface which handles individual packets havingAndrew Tridgell4-60/+18
unicode bit set differently to capabilities (This used to be commit 34a0821e087810381996f5ff6cf3b4d7b9bb53a0)
2001-03-11Ok - everything now compiles in HEAD (at least the default stuff). WeJeremy Allison1-1/+1
should now be ready for the trivial winbindd port..... (Tim ? :-). Jeremy. (This used to be commit 85021b16388e8efc15ac57bf1a7c01bba552bf41)
2001-03-11Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison1-3/+0
RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy. (This used to be commit 0be41d5158ea4e645e93e8cd30617c038416e549)
2001-03-10to use the same macros in the client and server rename the CLISTR_Andrew Tridgell7-74/+74
macros to STR_ (This used to be commit 95c9e4e0ba8f37f565aaf136f41eb76489441ff7)
2001-03-09Missed some prs_inits.Jeremy Allison2-29/+29
Jeremy. (This used to be commit 7a8a7a24d4c328d26d34c3b3ac28af39e6acd32c)
2001-03-09Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.Jeremy Allison2-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. (This used to be commit 0cd37c831d79a12a10e479bf4fa89ffe64c1292a)
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-03-01Fixed compiler warning.Tim Potter1-4/+4
(This used to be commit 33e5c56ab049fe5e156579dbf2f9cd54897f1dd3)
2001-02-26Fix some errors uncovered in libsmbclient by the test suiteRichard Sharpe2-120/+57
Fix some problems with unused variables and reaching the end of a nonvoid function (This used to be commit 44986f397ae647aa790422737a839443efb99920)
2001-02-26made some LANMAN1 wildcard progressAndrew Tridgell2-9/+16
it now handles -M LANMAN1 -f '.x' -m '?x' nicely (This used to be commit e7ccb9be6da9b1426eb136b4a0a1171232471768)
2001-02-26fixed a bug in non-terminated unicode strings with clistr_pull()Andrew Tridgell1-1/+1
(This used to be commit 339bcfd05d3260a123ccf3c06429da6bfe621f74)
2001-02-26add cli_list_new() for forced new protocol listingAndrew Tridgell1-8/+18
(This used to be commit a5407366b77f2bec2c21e1f36dd007813d33f75e)
2001-02-25use cli_list_old() when negotiating the older protocolsAndrew Tridgell1-0/+4
(This used to be commit 735f29319b8d81df203c8ddbcea5349b11f2195d)
2001-02-25neater negprot code using the new cli_setup_bcc() callAndrew Tridgell1-7/+2
(This used to be commit 5b1728426531785d37b4fac0684114f8a84dacb2)
2001-02-25Separated reg code into interface & implementation.Jeremy Allison1-5/+1
libsmb/namequery.c: Removed ununsed variables. Jeremy. (This used to be commit b857113f400551c57ac400a9cdc3c752085d107d)
2001-02-22make sure we don't free non-allocated dataAndrew Tridgell1-7/+10
(This used to be commit 4a620f7037378dc042b6388ede6356c6db5d58fb)
2001-02-22cope better with broken filer expectationsAndrew Tridgell1-2/+2
(This used to be commit 847de3b4adfb00a98032e478b2663d09e240380e)
2001-02-21converted the last couple of functions in libsmb to be unicodeAndrew Tridgell2-14/+18
the whole of libsmb should now do unicode where appropriate (This used to be commit ac7529d2b69826f8214d5632c31778cc87216653)
2001-02-21the unicode conversion of our client code is complete enough to beAndrew Tridgell6-95/+24
enabled by default you can disable it by setting the environment variable CLI_FORCE_ASCII (This used to be commit 4d59c08c5e6f54c0d6ced7650750cb987e77b6c9)
2001-02-21reverted richards cli_NetServerEnum changes - they broke lots of thingsAndrew Tridgell1-56/+12
(This used to be commit 86adbb0caf26a8c2fc4d3748b965c0ce79360c1a)
2001-02-21added support for a CLISTR_ASCII flag so we can use a uniformAndrew Tridgell1-4/+5
interface for ascii-only fields (This used to be commit cdf0316610803e6743936b29f232b32f9ec81422)
2001-02-20yipee! client unicode now works well with ntAndrew Tridgell3-8/+15
(This used to be commit 5b2ef8a1b914265c6072c968d2dad7d26c2aeffc)
2001-02-20converted a bunch more fnsAndrew Tridgell3-40/+56
(This used to be commit f6b8d6730452522f77852af0917cb48424d4c8a9)
2001-02-20converted nt_create and setatrAndrew Tridgell1-9/+10
(This used to be commit c40a1e4ebdb379482bf6e7d4efcc9b5321a4e7c6)
2001-02-20- neater setting of bccAndrew Tridgell5-25/+29
- converted cli_rename and cli_unlink (This used to be commit 0a8992e224b7a3d90d45b13d73fa8a6f155efa79)
2001-02-20converted cli_open()Andrew Tridgell1-7/+8
(This used to be commit db60c0c26242be0370e6459fe6f1634c97b61176)
2001-02-20converted cli_chkpath()Andrew Tridgell1-3/+4
(This used to be commit 95268f52556e5983004e594002b7e18a8656d1f0)
2001-02-20converted cli_list()Andrew Tridgell3-34/+57
(This used to be commit bdce09b77807c80281c1e169b7c4813c9238fbe3)