summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* resource.h on FreeBSD 2.1 requires sys/time.h to come first.Luke Leighton1998-08-241-11/+11
|
* added ASSERT() and ASSERT_ARRAY() macros and sprinkled them liberallyAndrew Tridgell1998-08-2211-12/+106
| | | | in the rpc code.
* expanded MAX_LOOKUP_SIDS to 30 (I saw 21 in a packet)Andrew Tridgell1998-08-221-1/+1
|
* 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 -)-----
* 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 -)-----
* 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 :)
* 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.
* added new smb.conf option "panic action". see my samba-technicalAndrew Tridgell1998-08-216-20/+17
| | | | explanation.
* 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!
* added a macro ZERO_STRUCT() which is useful for initialisingAndrew Tridgell1998-08-211-0/+3
| | | | structures declared on the stack.
* Submitting the smbtar changes to the main branch as well.Richard Sharpe1998-08-211-1/+6
| | | | | Regards Richard Sharpe
* Fix "make clean" to also delete SPROGS.John Terpstra1998-08-211-1/+1
|
* and get the message right ...Andrew Tridgell1998-08-211-1/+1
|
* silly me.Andrew Tridgell1998-08-211-1/+1
| | | | perms on lock dir should be 755 not 644.
* 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.
* 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.
* 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.
* testparm now prints a warning if the lock directory doesn't have 0644Andrew Tridgell1998-08-201-4/+15
| | | | permissions.
* added a test for a working setresuidAndrew Tridgell1998-08-194-139/+176
|
* Blocking lock code split out...Jeremy Allison1998-08-191-0/+375
| | | | Jeremy.
* 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.
* smbd/nttrans.c: Fixed bug in split off pipe code.Jeremy Allison1998-08-172-4/+16
| | | | | locking/locking.c: More blocking lock changes. Jeremy.
* Fixed bug introduced by the recent changes where the chain_fnumJeremy Allison1998-08-174-172/+196
| | | | | could be overwritten in oplock processing code. Jeremy.
* removed some of the rough edges from the splitupAndrew Tridgell1998-08-172-435/+456
|
* move soem variables from server.c that don't belong there.Andrew Tridgell1998-08-174-51/+30
|
* 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.
* more splitting of server.cAndrew Tridgell1998-08-176-564/+627
| | | | created dosmode.c and filename.c
* 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.
* 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)
* reduced the memory footprint a bit by changing some large static intAndrew Tridgell1998-08-171-9/+10
| | | | arrays to uchar
* moved connection_struct handling code into smbd/conn.c and changed itAndrew Tridgell1998-08-1710-145/+247
| | | | to a linked list with bitmap format.
* converted the policy code to use a linked list and bitmap. This savesAndrew Tridgell1998-08-173-279/+289
| | | | us a bit of memory.
* 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.
* 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.
* 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".
* - 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).
* 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.
* added include of sys/resource.hAndrew Tridgell1998-08-164-189/+238
|
* 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.
* server.c: fixed a bug in close_file() with the new files.c handling codeAndrew Tridgell1998-08-165-29/+154
| | | | | bitmap.c: added bitmap hanlding code in preparation for increasing the default max open files to several thousand
* changed find_free_file() to file_new().Andrew Tridgell1998-08-164-11/+11
|
* this checkin gets rid of the global Files[] array and makes it localAndrew Tridgell1998-08-1518-942/+957
| | | | | | | in files.c it should now be faily easy to expand the default MAX_OPEN_FILES to many thousands.
* use user instead of this_user to prevent global shadowingAndrew Tridgell1998-08-152-36/+36
|
* some more dummy files to ignoreAndrew Tridgell1998-08-153-1/+4
|
* moved the printing related files to a separate printing/ directory.Andrew Tridgell1998-08-156-31/+31
|
* configure: Changes for extra headers.Jeremy Allison1998-08-1531-97/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | configure.in: Source for header changes. client/clitar.c: Fixed isXXX macros & debugs for gcc pedantic compile. include/config.h.in: Added MEMSET, BZERO, MEMORY, RPCSVC_YPCLNT, STRINGS headers. include/includes.h: Headers for the above. include/smb.h: Made SIGNAL_CAST POSIX by default void (*)(int). lib/access.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/charset.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/debug.c: Fixed signal functs. lib/kanji.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/smbrun.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/util.c: Fixed isXXX macros & debugs for gcc pedantic compile. libsmb/namequery.c: Fixed isXXX macros & debugs for gcc pedantic compile. locking/shmem.c: Fixed isXXX macros & debugs for gcc pedantic compile. locking/shmem_sysv.c: Fixed error messages in sysV stuff. nmbd/asyncdns.c: Fixed signal functs. nmbd/nmbd.c: Fixed isXXX macros & debugs for gcc pedantic compile. passdb/passdb.c: Fixed isXXX macros & debugs for gcc pedantic compile. passdb/smbpassfile.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/chgpasswd.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/ipc.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/nttrans.c: Fixed fsp code path. smbd/password.c: fixed HAVE_YP_GET_DEFAULT_DOMAIN problem. smbd/printing.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/reply.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/server.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/trans2.c: Fixed core dump bug. smbd/uid.c: Fixed isXXX macros & debugs for gcc pedantic compile. Jeremy.
* this is the bug change to using connection_struct* instead of cnum.Andrew Tridgell1998-08-1449-3823/+3885
| | | | | | | | Connections[] is now a local array in server.c I might have broken something with this change. In particular the oplock code is suspect and some .dll files aren't being oplocked when I expected them to be. I'll look at it after I've got some sleep.
* remove an unused variableAndrew Tridgell1998-08-141-1/+0
|
* define INADDR_NONE if not already definedAndrew Tridgell1998-08-141-0/+4
|
* Makefile.in: Changed so that make proto will work with ldap & nisplus.Jeremy Allison1998-08-144-22/+156
| | | | | | | | locking/locking.c: Made #ifdef'ed out functions static for Make proto. lib/util.c: Re-instated old mask_match code for UNIX filesystem checks only. Client calls use the new mask_match code. Changed the name of the old function to unix_mask_match. Jeremy.