summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* we were setting the strings 1 too long in make_srv_share_info1_str()Andrew Tridgell1998-09-031-2/+2
|
* fixed a bug in the name mangling code. It implicitly assumed thatAndrew Tridgell1998-09-033-45/+43
| | | | | | | | mangling a name can't increase it's size which isn't true. (imagine a file called "L B" which mangles to "LB~XX") The symptoms were that users couldn't run batch files from short directory names that contained non 8.3 characters (such as spaces).
* Fix for PR#9497 - not waiting for child.Jeremy Allison1998-09-021-2/+4
| | | | Jeremy.
* we are never interested in SIGPIPE so just ignore (block) itAndrew Tridgell1998-09-023-44/+5
| | | | always. Don't even install a handler.
* changed ref to samba.gif to use /swat/ prefixAndrew Tridgell1998-09-021-1/+1
|
* use /swat/ prefix in both inetd and cgi modes, to enable a static header.htmlAndrew Tridgell1998-09-022-19/+8
|
* Missed one struct stat.Jeremy Allison1998-09-011-2/+2
| | | | Jeremy.
* More abstraction of file system data types, to move to a 64Jeremy Allison1998-09-0132-185/+196
| | | | | | | | | | | | | | | | | | | | | bit file interface for the NT SMB's. Created a new define, SMB_STRUCT_STAT that currently is defined to be struct stat - this wil change to a user defined type containing 64 bit info when the correct wrappers are written for 64 bit stat(), fstat() and lstat() calls. Also changed all sys_xxxx() calls that were previously just wrappers to the same call prefixed by a dos_to_unix() call into dos_xxxx() calls. This makes it explicit when a pathname translation is being done, and when it is not. Now, all sys_xxx() calls are meant to be wrappers to mask OS differences, and not silently converting filenames on the fly. Jeremy.
* Matthew is no longer wokring on SWATAndrew Tridgell1998-09-011-4/+3
|
* need to istall new filesAndrew Tridgell1998-09-011-1/+8
|
* spruced up SWAT a bit - it now uses the new Samba logo at the top andAndrew Tridgell1998-09-014-21/+40
| | | | a table to give it a little border
* fixed a bug in the base64 hanlding that led to auth failures for someAndrew Tridgell1998-09-011-2/+6
| | | | passwords with SWAT
* check that a valid pipe is passed before doing a pipe close.Andrew Tridgell1998-09-011-0/+4
| | | | | | | | | | | I made this change after getting a segv in reply_pipe_close(). The funny thing was that pipes_open was 1 and Pipes was NULL. That "can't happen" and suggests that we have a wild pointer somewhere. I suspect the rpc code, as I was playing with long share names (a share called "averylongusername") at the time and the logs show lots of srvsvc operations. I bet there is a buffer in the rpc code somewhere that is overflowing and trashing bits of the data segment.
* configure.in, configure: include/config.h.in: Added stropts and poll.Jeremy Allison1998-08-3116-336/+455
| | | | | | | | | | | include/smb.h: Moved old typedefs of uint8 etc. into include/includes.h where all the other defines live (changed them from typedefs to defines). Other changes : changed from using uint32 to SMB_DEV_T and SMB_INO_T in preparation for moving to size independed (ie. 64 bit clean) device and inode access. Stat call wrapper comes next :-). Jeremy.
* I added notes about the changes I've made to 2.0.0. I put the change toChristopher R. Hertel1998-08-311-2/+29
| | | | | | | | | nmbd default behavior (appending to logs instead of overwriting them) into the "Major Changes" section, but added a "Minor Changes" section for the things that wouldn't affect the running of Samba itself (eg., the splay tree for WINS and the change to DEBUG output). Chris -)-----
* I looked at the refresh issue a bit more and discovered that SambaAndrew Tridgell1998-08-311-3/+4
| | | | | | | also doesn't switch to a registration if a refresh fails, instead the name is removed! This makes it even more imortant that a Samba WINS server accepts refresh requests as registration requests if the name is not registered. I've gone ahead and implemented this.
* minor fixes to the DMB<->DMB sync code. We now get the dmb name fromAndrew Tridgell1998-08-311-5/+10
| | | | the local_master name on the unicast subnet if it is unknown.
* if an address is ipzero in cli_connect() then do a name queryAndrew Tridgell1998-08-311-1/+2
|
* I realised that my DMB<->DMB sync code has the property that theAndrew Tridgell1998-08-312-2/+20
| | | | | | | | | amount of network traffic grows as the square of the number of workgroups. It probably wouldn't have caused problems but to be safe I changed the code to use random() to decrease the probability of a DMB<->DMB sync in proportion to the number of known workgroups. This keeps the nice browse connectivity while making the traffic rise only linearly with the number of workgroups.
* preparing for release of 2.0.0 alpha 1Samba Release Account1998-08-3153-53/+53
|
* preparing for release of 2.0.0 alphaSamba Release Account1998-08-3153-45/+69
|
* fixed a commentAndrew Tridgell1998-08-311-1/+1
|
* updated the WHATSNEW in preparation for an alpha releaseAndrew Tridgell1998-08-312-185/+52
|
* set a maximum name refresh time of 20 minutes.Andrew Tridgell1998-08-313-3/+7
| | | | | | | | | | The previous code was strictly correct, but not very practical. self names were only refreshed every 3 days. I hit a situation where the Samba WINS server was restarted after deleting wins.dat and didn't notice some remote subnets (also running Samba). I realised that the complete database wouldn't have been rebuilt for 3 days, which is way too long. In order to recover from WINS restarts we need a much shorter maximum refresh time.
* cast the qsort to prevent warningsAndrew Tridgell1998-08-311-1/+1
|
* bounds check next_token() to prevent possible buffer overflowsAndrew Tridgell1998-08-3121-107/+128
|
* added a dest_port parameter to send_mailslot() so we send replies toAndrew Tridgell1998-08-307-22/+27
| | | | the correct port in environments like ip masq.
* a couple of debug linesAndrew Tridgell1998-08-301-0/+2
|
* finished the asynchronous browse synchronisation code. It even seemsAndrew Tridgell1998-08-305-142/+346
| | | | | | | | to work (not a lot of testing yet though). Now we just need to deal with people worried about having more than two nmbd processes sometimes. (the async processes are created on demand for browse sync, so you'll only see more than 2 occasionally)
* This should fix the zombie problem that luke noticed.Andrew Tridgell1998-08-301-1/+1
|
* we we have successfully done a query on *<1b> from a wins server andAndrew Tridgell1998-08-301-7/+25
| | | | | | then obtained a node status response we need to remember the server name of the master browser so that other browse clients asking us for a workgroup list will get a entry for the master of that workgroup.
* changed the way that name query records are sorted in replies. TheyAndrew Tridgell1998-08-304-36/+54
| | | | | are now sorted by the number of common leading bits in the IP address with the address of the querying host.
* include our netbios names list and our workgroup in the wins.dat hashAndrew Tridgell1998-08-301-2/+22
|
* don't put two spaces at the start of lines if logging to stdoutAndrew Tridgell1998-08-301-1/+3
| | | | or not timestamping.
* changed the format of the wins.dat file slightly.Andrew Tridgell1998-08-303-0/+39
| | | | | | | | | | | | | | | | | | | | | | It now has a line like this: VERSION 1 251152 the first number is a version #define in nmbd_winsserver.c and will be used if we ever have to change the format again. The second number is a hash of the current interfaces setting. It is used to detect the case where nmbd is restarted on a machine after the IP of the machine has changed (or the interfaces list has changed in any way). When that happens we need to discard the old wins.dat cache or you end up with chaos. This has bitten quite a few people, they find that when they move a machine it continues using the old IP for some things for the next week until the wins entries time out! I've checked, and the old nmbd can handle the new format, although it does spit out a spurious error message about the VERSION line. So users can safely run 2.0alpha then switch back to 1.9.18 without problems.
* allow smbclient to connect to IPC$ as an IPC serviceAndrew Tridgell1998-08-301-2/+0
|
* - zero shared memory before freeing itAndrew Tridgell1998-08-302-6/+8
| | | | | | - changed the hash size to 13 (much smaller than before). This should make for more efficient shared memory usage as it will lead to less fragmentation.
* added a function zero_free(void *, int size) that zeros an area ofAndrew Tridgell1998-08-301-0/+11
| | | | memory then frees it. Useful for catching bugs.
* changed the size of a char array in the userdata_struct from 1 to 16Andrew Tridgell1998-08-303-1/+11
| | | | | | | | | | | | to account for padding/alignment issues. Eventually I'd like to find a way to get rid of this construct altogether as it is a bit error prone and hard to debug. also added a new macro: ZERO_STRUCTP() that takes a pointer to a structure and zeros the structure. Used in nmbd to zero allocated structures before freeing them to try to catch bugs a bit faster.
* added some defensive programming to nmbd. This mostly means zeroingAndrew Tridgell1998-08-309-13/+29
| | | | | | | | areas of memory before freeing them. While doing this I also found a couple of real bugs. In two places we were freeing some memory that came from the stack, which leads to a certain core dump on many sytems.
* got rid of calls to update_protected_database(). It was causing coreAndrew Tridgell1998-08-292-74/+0
| | | | | dumps. It is gone until someone can tell us why its needed and what it does. (It was only used on OSF1 and core dumped there anyway!)
* don't exit on a SIGPIPEAndrew Tridgell1998-08-291-2/+1
|
* This checking fixes the statcache bug that stopped NetBench from runningJeremy Allison1998-08-2810-44/+91
| | | | | | | | | | | | | | correctly. Added new parameter "stat cache size" - set to 50 by default. I now declare the statcache code officially "open" for business :-). It gets a hit rate of 97% with a NetBench run and seems to make using a case insensitive run as efficient as a case sensitive run. Also tidied up our sys_select usage - added a maxfd parameter and also added an implementation of select in terms of poll(), for systems where poll() is much faster. This is disabled by default. Jeremy.
* nmbd would core dump if a large number of netbios aliases is set. TheAndrew Tridgell1998-08-281-2/+3
| | | | | | | problem was a buffer overflow in process_node_status_request(). this really points out a general problem is allocating MAX_DGRAM_SIZE packets on the stack in nmbd. There must be a better way.
* Fixed stat cache statistics calculation. Oops.Jeremy Allison1998-08-271-1/+1
| | | | Jeremy.
* This is the stat cache code - seems to work fine (needs heavyJeremy Allison1998-08-2710-51/+327
| | | | | | NetBench testing though.... :-). Attempts to efficiently reduce the number of stat() calls Samba does. Jeremy.
* oops - added /usr/include/rpc includes.Luke Leighton1998-08-261-1/+2
|
* use a separate ZERO_ARRAY() macro instead of ZERO_STRUCT() forAndrew Tridgell1998-08-263-2/+3
| | | | arrays. This prevents (harmless) warnings from some compilers
* get includes right for systems that use getpwanam()Andrew Tridgell1998-08-261-0/+6
|
* 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.