summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* get includes right for systems that use getpwanam()Andrew Tridgell1998-08-261-0/+6
| | | | (This used to be commit afe98165a261a740cd0ee88bf041d69721ec72e6)
* took all the rpc includes back out until we can work out _why_ freebsdAndrew Tridgell1998-08-261-24/+0
| | | | | needs them and what should really be there. (This used to be commit c2bf18fb8d2fea5af86ba8cf5d92b1dc076dd7d5)
* added a warning when loading a parameter that is deprecatedAndrew Tridgell1998-08-261-0/+5
| | | | (This used to be commit c8b0041570a1fb0be0318f511c6ba746c733cda9)
* Finally got around to updating the man pages for nmbd and smbd to reflectChristopher R. Hertel1998-08-252-3/+19
| | | | | | | the changes made re: -a and -o options. Chris -)----- (This used to be commit e162819054d0241e92978b6b630be8cccc886caf)
* added loads of pointless rpcsvc/ and rpc/ include files, all becauseLuke Leighton1998-08-254-6/+41
| | | | | | rpcsvc/ypclnt.h wants a struct dom_binding. knock-on include effect under freebsd 2.1. (This used to be commit d1005b5692e41660a2a7230231b0591aa0773485)
* note that "alternate permissions" is deprecated in man pageAndrew Tridgell1998-08-251-16/+2
| | | | (This used to be commit 2af95650174ae02a9768fbbbf7c206e15bf18f79)
* proto changesAndrew Tridgell1998-08-251-1/+5
| | | | (This used to be commit e4f81f4a230130f53857e3664e6d83ce252c207e)
* some smbtorture hacks (random IPC calls)Andrew Tridgell1998-08-252-9/+65
| | | | (This used to be commit b32a346a1c50ba40224b8165e08e78867be2d376)
* changed the default permissions code to do this:Andrew Tridgell1998-08-253-14/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | if ((sbuf->st_mode & S_IWUSR) == 0) result |= aRONLY; rather than the very complex user/group permissions checks we do currently. This is equivalent ot setting "alternate permissions = yes" in the old code. The change is motivated by three main reasons: 1) it's basically impossible to second guess whether a file is writeable without trying to open it for writing. ACLs, root squash etc just make it too hard. 2) setting it not RONLY if the owner can write is closer to what NT does (eg. look at a cdrom - files are not marked read only). 3) it prevents the silly problem of copying files from a read only share to a writeable share and then finding you can't write to them as windows preserves the RONLY flag. Lots of people get bitten by this when they drag a folder from a Samba drive. It also hurts some install programs. I have also added a new flag type for loadparm.c called FLAG_DEPRECATED which I've set for "alternate permissions". I'll soon add code to testparm to give a warning about deprecated options. (This used to be commit c4363a12fdc0be329ca2bfeb1d7b89bfe90031dc)
* Added code to (correctly) ignore TRANSACT2_SETFILEINFO with ↵Jeremy Allison1998-08-252-2/+4
| | | | | | | | SMB_SET_FILE_ALLOCATION_INFO. Office 97 expects this call to succeed when you tell it you do NT SMB calls. Jeremy. (This used to be commit 260e7e27401d863e9f580d4748c577334d9fc9d0)
* Changed ASSERT macros to SMB_ASSERT macros as some systems alreadyJeremy Allison1998-08-2413-58/+58
| | | | | | have an ASSERT macro defined. Jeremy. (This used to be commit dbe6ad014a8b5dcbf17d7cd9865650c2e040d666)
* resource.h on FreeBSD 2.1 requires sys/time.h to come first.Luke Leighton1998-08-241-11/+11
| | | | (This used to be commit e94ab03a4f97ff7ee7bb938245cf054a00f950fd)
* added ASSERT() and ASSERT_ARRAY() macros and sprinkled them liberallyAndrew Tridgell1998-08-2211-12/+106
| | | | | in the rpc code. (This used to be commit e6ce1c5b5a9f29d8fcbbd23019186ff5c600e795)
* expanded MAX_LOOKUP_SIDS to 30 (I saw 21 in a packet)Andrew Tridgell1998-08-221-1/+1
| | | | (This used to be commit bd9290c36c9993a994e485da0a81df926f8662e4)
* Just tweaking.Christopher R. Hertel1998-08-211-2/+20
| | | | | | | | | | | | If the output line is longer than the format buffer could manage, I was simply ignoring the additional output (that is, *not* copying it to the format buffer--thus avoiding a buffer overrun). Instead, I now output the current content followed by " +>\n", and then reset the format buffer. I have never seen a debug line that exceeds the size of a pstring, but I might as well handle the situation...just in case. Chris -)----- (This used to be commit 8a11d04b7796b256953bf92b2f2ccab763215bc4)
* nmbd and smbd had different behavior with respect to log files. nmbd wouldChristopher R. Hertel1998-08-212-12/+22
| | | | | | | | | | | | | | | | default to overwrite and smbd would default to append. Also, the -a option (actually a toggle, such that "-a -a" would set the default) was documented as append mode for nmbd, and *overwrite mode* for smbd. nmbd now defaults to append mode, to match smbd. The -a option now always means append, and I've added the -o option to both, meaning overwrite. Note that the change to nmbd's default behavior may confuse some people. I've not seen anything about 2.0.0 changes in the WHATSNEW.txt file. Where would I document a change like this? Chris -)----- (This used to be commit b1d374fb14b1fb92a84260f1dcc59a39a4b99a3d)
* don't attempt to answer QFILEINFO/SMB_QUERY_FILE_STREAM_INFO queries -Andrew Tridgell1998-08-211-0/+4
| | | | | | | if we do then NTws gets a BSOD. I checked and NT server refuses these queries too :) (This used to be commit d2fb7ee8f55dd1ff25fca46e18b02a05bc2b71ae)
* Adding first cut of the new Red Hat Linux packaging tools.John Terpstra1998-08-2112-0/+972
| | | | | | | Note: It is intended to extend this so that the release process produces all the packaging scripts, templates, etc. that may be needed. (This used to be commit 6e196841c618044d33da45d3de5371004a58e4c6)
* added new smb.conf option "panic action". see my samba-technicalAndrew Tridgell1998-08-216-20/+17
| | | | | explanation. (This used to be commit c6899df44c34088a4d2bf1edc840320b0ba7e32e)
* use ZERO_STRUCT() to initialise lots of structures.Andrew Tridgell1998-08-212-2/+60
| | | | | | Luke, you need to do something similar in the rest of the rpc code. Have fun! (This used to be commit bdd8aaa544780898e20189195d4019b9beb4445c)
* added a macro ZERO_STRUCT() which is useful for initialisingAndrew Tridgell1998-08-211-0/+3
| | | | | structures declared on the stack. (This used to be commit f323af8fce54cd5d51c848aa7ea7be4dd3538f2e)
* Submitting the smbtar changes to the main branch as well.Richard Sharpe1998-08-211-1/+6
| | | | | | Regards Richard Sharpe (This used to be commit 749ec1e0a79c5836bba0fc0213576ed79ef761d5)
* Fix "make clean" to also delete SPROGS.John Terpstra1998-08-211-1/+1
| | | | (This used to be commit 268cbede0fd909da1cb5bbc964244456f32006a6)
* and get the message right ...Andrew Tridgell1998-08-211-1/+1
| | | | (This used to be commit 0d641d0cebfbd8cc6015d2361e088ce0410c5d20)
* silly me.Andrew Tridgell1998-08-211-1/+1
| | | | | perms on lock dir should be 755 not 644. (This used to be commit 930a4292e95947d20696b7ce08bbb936442fe327)
* fixed a bug in trans2_qfilepathinfo() where we used the length of theAndrew Tridgell1998-08-211-0/+4
| | | | | basename of a file but the whole file name. silly error. (This used to be commit 6e00de7a1d3d5f9fa9bcc40db119fcb8602165c9)
* Fixes for the problem in blocking locks with file_fsp returning theJeremy Allison1998-08-213-32/+51
| | | | | | | chain_fsp on close (if you don't know what this means, consider yourself lucky - this one took a day to track down :-). Jeremy. (This used to be commit 193cb5382464173e99a538867a266d793f0ceab5)
* Turning on blocking locking code. NB. Blocking lock requests that are notJeremy Allison1998-08-208-89/+325
| | | | | | | | | | | | | | | | | | | the head of an SMB request (ie. are part of a chain) will not be queued - this will be fixed when we move to the new chain code. In practice, this doesn't seem to cause much of a problem (in my admittedly limited testing) bug a debug level zero message will be placed in the log when this happens to help determine how real the problem is. smbd/locking.c: New debug messages. smbd/blocking.c: New blocking code - handles SMBlock, SMBlockread and SMBlockingX smbd/chgpasswd.c: Fix for master fd leak. smbd/files.c: Tidyup comment. smbd/nttrans.c: Added fnum to debug message. smbd/process.c: Made chain_reply() use construct_reply_common(). Added blocking lock queue processing into idle loop. smbd/reply.c: Added queue pushes for SMBlock, SMBlockread and SMBlockingX. Jeremy. (This used to be commit e1dd03ecda0bc6d7eaa31070c83774bb5679fd1b)
* testparm now prints a warning if the lock directory doesn't have 0644Andrew Tridgell1998-08-201-4/+15
| | | | | permissions. (This used to be commit 10303a78d4b12a03166db89202759cd745c516c5)
* added a test for a working setresuidAndrew Tridgell1998-08-194-139/+176
| | | | (This used to be commit dbe333b590ef004ccbd31a14ad161d73139b2486)
* Blocking lock code split out...Jeremy Allison1998-08-191-0/+375
| | | | | Jeremy. (This used to be commit 9cdb148ef56dc8f74891f5c6e9cae10142bd4c6e)
* Makefile.in: Moved blocking lock code into smbd/blocking.c for link purposes.Jeremy Allison1998-08-198-410/+186
| | | | | | | | | | | | include/includes.h: Added nterr.h. locking/locking.c: Moved blocking lock code into smbd/blocking.c for link purposes. smbd/close.c: Added blocking lock removal to file close. smbd/filename.c: Tidied up unix_convert() so I could read it (:-) in preparation for the stat_cache code. smbd/nttrans.c: Added WRITE_ATTRIBUTES check. smbd/reply.c: Fixed multibyte char problem in wildcard mask. Jeremy. (This used to be commit 148eaba3dadb1d0bd3ac3ef53da3d9811636e89a)
* smbd/nttrans.c: Fixed bug in split off pipe code.Jeremy Allison1998-08-172-4/+16
| | | | | | locking/locking.c: More blocking lock changes. Jeremy. (This used to be commit 2ca4fc95a4227645f1009a057d46b58508846a92)
* Fixed bug introduced by the recent changes where the chain_fnumJeremy Allison1998-08-174-172/+196
| | | | | | could be overwritten in oplock processing code. Jeremy. (This used to be commit 908a583b48e37c5e869216f4dc92d4a587ff1238)
* removed some of the rough edges from the splitupAndrew Tridgell1998-08-172-435/+456
| | | | (This used to be commit 722312c326d54849e2552327fcd88ac77257ad2c)
* move soem variables from server.c that don't belong there.Andrew Tridgell1998-08-174-51/+30
| | | | (This used to be commit f92475aa3cb3ade576c39c02c7996c949c42082a)
* this completes the splitup of server.c.Andrew Tridgell1998-08-1710-3349/+3574
| | | | | | | | | the splitup was done with an axe, not a scalpel, so there are some rough edges. I mostly wanted to get the general form right with fine tuning of what goes where to come later. Still, this is better than what we had before where server.c was a general repository for anything that didn't fit elsewhere. (This used to be commit a6d194886a4a5f7507fa37289ff96c1be56f14a6)
* more splitting of server.cAndrew Tridgell1998-08-176-564/+627
| | | | | created dosmode.c and filename.c (This used to be commit 534a90ca44641417c21f6ed6d4b94b1de60f808d)
* now that we have no global arrays we can start to split up the monsterAndrew Tridgell1998-08-176-495/+553
| | | | | | | | server.c without breaking things. this splits off netprot.c and fileio.c for negprot and read/write/seek handling respectively. (This used to be commit b3d7014643ec9f2eef6e6f598f5b9db1fe2f930d)
* added some optimisation for the case where the number of open files isAndrew Tridgell1998-08-177-95/+84
| | | | | | | | | | very large. files.c now promotes a files_struct to the top of the list if it is used when it is more than 10 elements from the top. also moved common linked list code for the 5 sets of linked lists that I've created over the past few days into dlinklist.h (I've explained to Chris why I didn't use the ubiqx code) (This used to be commit 1eb9ae2996b5a243a147f485e7e353d54f820852)
* reduced the memory footprint a bit by changing some large static intAndrew Tridgell1998-08-171-9/+10
| | | | | arrays to uchar (This used to be commit 01b642a3793a1bea0517370a9a64945fd86ddf02)
* moved connection_struct handling code into smbd/conn.c and changed itAndrew Tridgell1998-08-1710-145/+247
| | | | | to a linked list with bitmap format. (This used to be commit b7aaab1b6b2d2f72b2bb7c11f5c7bf081a6093d9)
* converted the policy code to use a linked list and bitmap. This savesAndrew Tridgell1998-08-173-279/+289
| | | | | us a bit of memory. (This used to be commit 27da84b90df1f32e0d07acad04c72065b2005470)
* much cleaner chain pointer handling for both files and pipes.Andrew Tridgell1998-08-1711-87/+81
| | | | | | | the chain pointer is now stored as a static and is set whenever a handle is created or extracted. This also makes the code less error prone. (This used to be commit 068a862982bea726e8d7b1b4065d510b9840a272)
* some cleanups from the conversion of Pipes[] to a linked list. I alsoAndrew Tridgell1998-08-1711-373/+350
| | | | | | | | | removed most cases where a pnum is used and substituted a pipes_struct*. in files.c I added a offset of 0x1000 to all file handles on the wire. This makes it much less likely that bad parsing will give us the wrong field. (This used to be commit 8bc2627ff28d340db65bfa017daca2dc291d5ef7)
* I think it is pretty much decided that the next major version will beAndrew Tridgell1998-08-161-1/+1
| | | | | | 2.0, so I've updated version.h to reflect this. I've put in "2.0.0-prealpha". (This used to be commit f1c67a00b8603bf1a9e6bef680c0d563727ba108)
* - some tidying up in files.cAndrew Tridgell1998-08-163-11/+10
| | | | | | | | | - handle null fsp in DEBUG() at end of reply_ntcreate_and_X(). Jeremy, can you fix this properly? - get snum right in print queue code in ipc.c (it was broken by my connections_struct changes). (This used to be commit b3dd3785751db2d5d0a80ffac9c3df01c9909891)
* fixed some bugs in the locking_slow code caused by the recent changes.Andrew Tridgell1998-08-161-8/+9
| | | | | | also fixed a couple of %s/%d bugs in locking slow that have been there for a while but are now revealed by the gcc printf argument testing. (This used to be commit 16228c185a7844a243db538aa1e5729e62a8bc4a)
* added include of sys/resource.hAndrew Tridgell1998-08-164-189/+238
| | | | (This used to be commit bf136b4fa8aeadcea8f65610148d46d093aba2cc)
* got rid of the Files[] array completely (previously I'd just made itAndrew Tridgell1998-08-168-154/+234
| | | | | | | | | | | | | | | | | | private to files.c) It now is a doubly linked list with a bitmap for allocated file numbers. Similarly for the fd_ptr code. I also changed the default maximum number of open files to 4096. The static cost is 1 bit per file. It all seems to work, and it passes the "does Sue scream" test, but if you see weird behaviour then please investigate. With the volume of new code that has gone in there are bound to be one or two bugs lurking. note that you must do a "make clean" before building this as many data structures have changed in size. (This used to be commit 79755ce97004b787d7e83a8d18fc4c7c003b7231)