SAMBA 2.2.12 source kit for 8.2 (and possibly earlier)

John E. Malmberg wb8tyw at qsl.net
Sun Oct 31 21:43:41 GMT 2004


John E. Malmberg wrote:
> For those interested in being more on the bleeding edge, I have now
> merged in the SAMBA 2.2.12 changes with last source kit that I produced.

In the previous 2.2.12 kit and the 2.2.8 kit, I introduced two major 
bugs.  One is that it bypassed the filename translation code, and as a 
result also bypassed the stat cache for performance.

It also broke the operation of the stat cache.

This new 2.2.12 kit corrects those bugs, and also incorporates all of 
Jean-Yves Collot's fixes that have been documented to date.

In addition, it has several other changes:

1. In previous vms_support.c, sections of the item_list structure to the 
SYS$GETUAI call were not initialized.  This could lead to internal data 
structures being corrupted, or crashes with access violations.

2. Attempting to debug at level 5 or higher will result in a infinite
recursion until the stack is exhausted.

3. strcpy was used in several places to move overlapping sections of a 
string.  This is documented as to cause undefined behavior, and showed 
up as causing a corrupted stack during debug.  Replaced all occurrences 
that I found of this with memmove() instructions.

4. Out of memory conditions from realloc() calls were not being 
detected, resulting in the SMBD process crashing with an access 
violation.  Added messages to write the error condition to the log and 
then exit the SMBD.

5. To prevent memory fragmentation, which can cause premature cases of 
the SMBD process running out of memory, I increased the amount of memory
chunks allocated for storing a cached list of directory contents.

6. The tests for VMS Version were failing for EFT and VMS internal 
builds.  This was used to determine ODS-5 support.  Changed to assume 
that any EFT or VMS internal builds that are not on VAX support ODS-5.

The source kits can be found at:

   http://encompasserve.org/~malmberg/samba/

SAMBA_2_2_12-V82-SRC-20041031.ZIP;1

This has not undergone any significant testing, all I did was verify:

* that the server will transfer some files.
* that new files and directories can be created and renamed.

I have only done a test build on OpenVMS ALPHA 8.2 EFT at this time.  I
attempted to make this code build on older versions, but as yet I have 
not had
time to do any test builds.

If it is found not to build/work on a release before 8.2 EFT.

Same caveats as the previous code drop.  Unless something else happens,
I am going to start concentrating on the SAMBA 3.x and 4.x streams.

-John
wb8tyw at qsl.net
Personal Opinion Only



More information about the samba-vms mailing list