1 31-Oct-2004	Merge in update from Jean-Yves Collot    [.source.lib]debug.c  I Fix to prevent an infinite recursion at debug level 5 in the VMS specific 	 routines.      [.source.lib]system.c   K More fixes for the stat() mess.  Need to specifically call vms_stat because G redefining stat as a macro causes too many bad interactions through out  SAMBA.     [.source.lib]util_sock.c  I Break up socket reads that are greater than 61000 bytes as a VMS specific      [.source.smbd]open.c  < Fix from Jean-Yves Collot for anti-virus trying to open "./"     [.source.vms]config.h   K Previous 2.2.12 VMS source release bypassed the vms_stat wrapper completely G which skipped both the stat cache and the filename translation wrapper. J In order to make sure that both the correct stat structure and the correctL stat() routine is called, some fixes are needed, here and in other routines.     [.source.vms]cvt_filespec.c   3 Converted to strict prototypes for system services. ; Fixed VMS version test for Field Tests and internal builds.   7 Jean-Yves fixed handling for detecting ODS-5 filespecs.   K Replaced strcpy/strcat/strcmp with length limited versions to be compatible  with the rest of SAMBA.   I Use memmove() for moving overlapping sections of strings.  strcpy/strncpy  can not be used for this.   J Add diagnostic messages for out of memory failures, so that SMBD will exit? with a log message instead of exiting with an access violation.      [.source.vms]stm_read.c / Fixes for handling record formatted text files.      [.source.vms]vms.h  K Previous 2.2.12 VMS source release bypassed the vms_stat wrapper completely G which skipped both the stat cache and the filename translation wrapper. J In order to make sure that both the correct stat structure and the correctL stat() routine is called, some fixes are needed, here and in other routines.     [.source.vms]vms_stat.c   8 Change to properly indicate if a file is the exact size.     [.source.vms]vms_support.c  4 Converted for strict prototypes for system services.I Fix partially uninitialized item_list_3 structure.  Add tests for failure $ of system services and for malloc().4 Jean-Yves Collot fixed handling for some directorys.     [.source.vms]vms_tricks.c     Added tests for malloc failures.% Jean-Yves Collot fixed a memory leak. H Fix my previous 2.2.12 errors that broke the functionality of the cache,A and set up the stat cache to use the new stat structure properly.      [.source.vms]install.com  2 Add the SAMBA_SHUTDOWN.COM to the files installed.     [.source.vms]samba_shutdown.com    New file from Rod Regier.     < History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.LIB.CMS]5  22-OCT-2004 13:57:22 MALMBERG REPLACE UTIL_SOCK.C(3) ! 	"Restrict reads to 61000 bytes." 5  31-OCT-2004 15:03:38 MALMBERG REPLACE UTIL_SOCK.C(4)  	"Apply JYC fix correctly"1  31-OCT-2004 08:45:43 MALMBERG REPLACE DEBUG.C(3) I 	"Prevent infinite recurssion in vms_stat at debug levels greater than 5" 2  31-OCT-2004 08:49:38 MALMBERG REPLACE SYSTEM.C(3)( 	"VMS needs to explicitly call vms_stat"  = History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.SMBD.CMS]   0  31-OCT-2004 08:53:31 MALMBERG REPLACE OPEN.C(3)1 	"JYC fix for Anti-virus attempting to open './'"     < History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.VMS.CMS]5  22-OCT-2004 14:22:44 MALMBERG REPLACE INSTALL.COM(2)  	"Add SAMBA_SHUTDOWN.COM" >  22-OCT-2004 14:47:15 MALMBERG REPLACE COMPILE_STD_VAXC.COM(2) 	"Update from Jean-Yves Collot" G  22-OCT-2004 21:46:10 MALMBERG REPLACE CVT_FILESPEC.C(4) "ODS-5 fixes." 4  22-OCT-2004 21:47:02 MALMBERG REPLACE STM_READ.C(4)) 	"Fixes for large files and stream files" 4  22-OCT-2004 21:47:29 MALMBERG REPLACE VMS_STAT.C(3) 	"File size fix." 7  22-OCT-2004 21:48:09 MALMBERG REPLACE VMS_SUPPORT.C(4) ; 	"Directory handling fixes, unititialized structure fixes." 6  22-OCT-2004 21:50:14 MALMBERG REPLACE VMS_TRICKS.C(4)( 	"Memory leak, and malloc failure tests"2  31-OCT-2004 09:04:21 MALMBERG REPLACE CONFIG.H(4) 	"Fix stat wrapper hacks" 8  31-OCT-2004 09:21:33 MALMBERG REPLACE CVT_FILESPEC.C(5)3 	"Change to memmove, add out of memory diagnostics" /  31-OCT-2004 09:32:53 MALMBERG REPLACE VMS.H(3)  	"Fix stat wrapper hacks" 4  31-OCT-2004 09:40:10 MALMBERG REPLACE VMS_STAT.C(4)& 	"JYC fix for anti-virus opening './',5 	memmove is needed to move overlapping string ranges" 7  31-OCT-2004 09:47:24 MALMBERG REPLACE VMS_SUPPORT.C(5) : 	"Must use memmove() for moving overlapping string ranges,7 	increase size of directory memory allocation to reduce  	memory pool allocation"; 	[That was supposed to be reduce memory pool fragmentation] 6  31-OCT-2004 10:00:31 MALMBERG REPLACE VMS_TRICKS.C(5)D 	"Fix where in the previous 2.2.12 release, I broke the stat cache."=  31-OCT-2004 15:14:17 MALMBERG REPLACE AAA_VMS_KITTING.TXT(2) ; 	"Updated instructions to detect changes and missing files" 7  31-OCT-2004 15:25:57 MALMBERG REPLACE stage_kit.com(3) , 	"Update for Oct 31, 2004 2.2.12 source kit"  / @populate_cms_class JEM_2_2_12_VMS82_20041031 - # 	"Second 2.2.12 source kit release"     ? ------- Previous Changelog for 2.2.12 -------------------------   & 05-Oct-2004	Start of update to 2.2.12.  . Download and unpack the UNIX 2.2.12 SAMBA kit.  3 Use the DIR_DIFF.COM procedure to find the changes.   # @diR_diff/OUT=SAMBA212_CHANGE.LIS - 4   PROJECT_ROOT:[SAMBA_2_2_8.SAMBA-2_2_8-VMS73-SRC] -   PROJECT_ROOT:[SAMBA-2_2_12]     #   Files in reference diretory = 712    Files matching = 553     Not all files verified. *   Files missing from source direcotry = 60   Files that did not match = 99    Results after the 2.2.12 merge:   #   Files in reference diretory = 734    Files matching = 574     Not all files verified. *   Files missing from source direcotry = 82   Files that did not match = 78       > Edit the file SAMBA212_CHANGE.LIS to just contain the changes.  > Fix a bug that I introduced in VMS_TRICKS.C.  Implemented full prototyping in VMS_TRICKS.C.    C A quick scan shows that only a few files will actually need editing B unless I want to remove more #ifdef __VMS code that can be done in	 config.h.      06-Oct-2004	Merge started:   [docs.HTMLDOCS]SAMBA.7_HTML;1   B Only difference from SAMBA distribution is VMS specific additions.# No changes needed for SAMBA 2.2.12.    [.SOURCE.CLIENT]CLIENT.C  N Only difference is Control-Z for VMS.  No need to make a change just to change7 the conditional to the ANSI supported predefined macro.   K Proper change will be to lookup the terminfo definition for the end of file O character.  That will require that VMS provide a terminfo library or wrapper to  fake it.  9 Bug 1878 submitted to SAMBA to track the CONTROL-Z issue.   M Note the SAMBA CLIENT.C has it's debug level set to 2, the VMS one has it set $ to ZERO.  Not changing this for now.     [.SOURCE.CLIENT]SMBMOUNT.C  J VMS version has a change that is not needed, even if this program could be easily ported to OpenVMS.   > Replacing the VMS changed version with the UNIX SAMBA version.     [.SOURCE.INCLUDE]INCLUDES.H    VMS specific changes:   J SINO_T needs to be defined special in config.h, so includes.h needs not to! redefine it.  BUG 1879 submitted.   M The include path for the tdb files in the SAMBA code has a "../" in it.  This J is not compatible with OpenVMS.  BUG 1880 submitted to try to convince the  SAMBA team to do something else.  L The presence of HAVE_SYS_STATVFS_H implies SYSV.  As this is not the case in, 3.0.7, no bugzilla report needs to be filed.  M A small change about defining int32 to be int instead of the old uint32 being D defined to be int from the newer SAMBA.  This should not affect VMS.     [.SOURCE.INCLUDE]MANGLE.H    New prototype for check_cache()      [.SOURCE.INCLUDE]PRINTING.H   K Needs a VMS specific edit to allow the spool file to be on an ODS-2 volume. ? BUG # 1881 submitted to allow this to be specified in config.h.      [.source.include]proto.h  = Only the SIG_ATOMIC_T change is needed to the 2.2.12 version. H No bug report to SAMBA at this time, as proto.h is generated on the UNIX version.     [.source.include]safe_string.h  1 There is a VMS specific change to enable sprintf. I Restoring back to the UNIX version, as the VMS code should be able to use I the snprintf() or the replacement wrapper code, and if it really must use  sprintf, can use other tricks.     [.source.include]smb.h  O Keep VMS specific changes.  Too early to submit as enhancements to UNIX stream.      [.source.include]version.h  # The new SAMBA version.h for 2.2.12.      [.source.include]vfs.h  I VMS specific change for lstat() can be better handled in wrapper code for A now until a VFS module is written.  So restoring to UNIX version.      [.source.lib]debug.c  G VMS needs a change that looks like it is needed to prevent interference M from debug calling wrapper code which in turn calls debug.  This will be gone > when the VFS code is implemented, but is still needed for now.  K Also has an issue of trying to rename to a name that is not legal on ODS-2. J However a straight rename on VMS is not going to do what is really wanted,D as currently the rename function does not delete the older versions.  2 So keep this version until the VFS stuff is ready.     [.source.lib]fault.c  @ The SAMBA fault handler causes problems for VMS troubleshooting.& BUG 1887 submitted for an enhancement. Existing VMS version kept in.      [.source.lib]genrand.c  I VMS changes are still needed here.  It would take some work to get around 
 these issues.      [.source.lib]interfaces.c   G SAMBA 2.2.12 version includes <net/if.h>.  That is the only difference. ! Replace with 2.2.12 UNIX version.      [.source.lib]pidfile.c  D Keep VMS specific version.  Pidfiles do not work on VMS, and the VMSD implementation of SAMBA currently uses multiple processes, which the# pidfiles are attempting to prevent.   J All this module does right now is keep either NMBD or SMBD from running asA a detached process if they were ever run interactively for debug.    No SAMBA bug report to file.     [.source.lib]select.c     VMS specific changes maintained.     [.source.lib]smbrun.c   N VMS specific changes maintained.  Based on investigations from the 2.0.6 port,& more changes here are probably needed.< Replaced snprintf to be compatible with the UNIX Samba port.3 Changed the log file name as "$" is reserved to HP.r     [.source.lib]snprintf.cs  E Changes recently made to VMS version of SNPRINTF.C are already in thei samba 3.0.7 release.     [.source.lib]substitute.c   J The VMS changes do not appear to actually do anything.  Replacing with the SAMBA 2.2.12 version.0     [.source.lib]system.c   > Keep VMS changes for now.  Revisit this when VFS is available.     [.source.lib]time.c   ; Module needs casts for (time_t) for values of time_t of -1.b Bug 1888 submitted to bugzilla.l    N VMS module is overriding what SAMBA says is an optimization.  Need to find out why.   Reply from Jean-Yves Collot:  L    It's definitely a SAMBA bug. The idea is quite simple: the first time youJ    call the "optimized" localtime(), it construct a table of the differentN    offsets, in seconds, between the localtime and the gmttime for now and someE    time in the future. It does that by calling the standard C libraryO    localtime(), by the way.sO    So, for subsequent calls, it checks the table, gets the current offset, then L    calls gmtime() after having added that offset to the gmt time. Of course,N    with gmtime(), the  tm_isdst and the tm_gmtoff members of the tm struct are    always null.tI    Setting the correct tm_gmtoff is easy: it's the offset from the table.oI    Setting correctly the tm_isdst is probably more difficult. But is this !    member used anywhere in Samba?h  L    Actually, I had a second reason not to use that "optimized" thing. In theN    original code, it is implemented by "Localtime" replacing "localtime". WithM    the VMS C compiler, you can deal with such things (using /NAME=AS_IS), butrM    in my opinion, it is a real pain, and you may easily introduce a number ofrK    fine bugs by using such a feature in VMS in such a complicated software,.;    especially when you use that with a standard C RTL name.oL    So, I had a choice : make 2 or 3 specific VMS changes in order to replaceM    "Localtime" by something like "samba_localtime", or only one to completelytL    disable that "optimized" feature, that is a little buggy anyway, and doesK    not actually optimize anything in VMS (I experienced that 50000 calls toe+    standard localtime() take 0.50 sec CPU).i   Keep VMS module for now.     [.source.lib]util.ce  E Keep VMS changes for now.  Need to find out what is going on with theA; winbind NSS stuff to see why it is not being built for VMS.m     [.source.lib]util_file.c  I Keep VMS changes for now.  Revisit later after implementing a VFS module,.1 or see if they can be moved to a wrapper library.O     [.source.lib]util_getent.c  ? VMS is existing if grp->gr_mem == NULL.  Need to verify impact.   F Keep VMS changes for now.  Revisit later to see if can be moved to the wrapper library.     [.source.lib]util_sec.ca  B With POSIX UID/GIDs enabled, these hacks may or may not be needed.? For now, keep them in and investigate later how to remove them.t  K Need to investigate having SAMBA_SMBD, SAMBA_NMBD, and if needed SAMBA_SWAT3	 accounts.G     [.source.lib]util_sock.c  + Keep these VMS specific changes in for now.i     [.source.lib]util_str.c:  H Need to find a reason for the VMS specific change about the $ character.   Reply from Jean-Yves Collot:  G   Well, basically the "$" character has a special signification on UnixaD   which it has not in VMS. Replacing "$" with "_" may be useful in aF   number of cases, but just let's take an example where it must not be   done.(  K   If you keep the default parameters for a print queue, the "print command"R/   should be "print %f/queue=%p/delete/passall".-  H   So, now, try to create a printer share named SYS$PRINT, or try, on anyK   printer share, to print a file named TOTO$TEXT.LOG. If you remove the '$'SK   exemption in UTIL_SRC.C, the "%f" part of the command will be replaced by K   "TOTO_TEXT.LOG", and the queue name (%p) will be replaced by "SYS_PRINT".3     It will not work so well...(  E Bug number 1916 Entered to track the issue.  Note that since the bash:D shell may be present on OpenVMS, issue may be more complex to solve.  E For SAMBA 2.2.12 const qualifiers have been added, and casts removed.e     [.source.lib]cliconnect.ct  I Keep VMS changes.  Investigate if there is some way to implement this forS VMS.     [.source.libsmb]clidgram.c  / Replace old UNIX version with new UNIX version.e     [.source.libsmb]cliprint.c  I VMS fixes are present in UNIX 3.0.7 version, but not UNIX 2.2.12 version.  Keep version VMS.      [.source.libsmb]clirap.c  T unsigned value fixes are present in UNIX 3.0.7 version, but not UNIX 2.2.12 version.* Keep VMS version.  VMS also has INO_T fix.  2 Bug 1891 logged to track the INO_T issue with VMS.     [.source.libsmb]clisecdesc.c  T unsigned value fixes are present in UNIX 3.0.7 version, but not UNIX 2.2.12 version. Keep VMS version.      [.source.libsmb]cli_spoolss.cS  N Only difference is the edit history, so replace with 2.2.12 version so that it! will not show up in future scans.-     [.source.libsmb]unexpected.c  C VMS modification inhibits call to tdb_store.  Need to find out why.h3 Keeping VMS specific version until I find out more.R   Reply from Jean-Yves Collot:      Actually, there is a reason.-  M    I don't really know why, but I have on my site quite a big number of thoset<    packets supposed to be kept temporarily in UNEXPECTED.TDB  N    Since Dave Jones provided a new set of TDB routines, based upon RMS indexedJ    files, such an activity of insert/delete records in that file provoked,G    after a few days or a few weeks, very bad performances, and high I/Om=    activity on that file, because it became badly fragmented.        To fix this, I had 2 choices:D    1. Run every few days a procedure that should stop samba, convert'       UNEXPECTED.TDB and restart samba.S@    2. suppress the store/delete of the packets in UNEXPECTED.TDB  L    It may not be the best choice, but as far as nobody here is interested inJ    those unexpected packets anyway, and stopping/restarting samba is quiteH    perturbing for the users, I decided to stop storing that information.  N    I think it would have been better to add some specific VMS Global ParameterN    for enabling or disabling this feature, but I guess that at that time I wasK    in some hurry, so I just disabled the storage and forgot about it since.l  N It may be that a more efficient method is needed in redirecting those packets,5 or even better finding out why they were misdirected.e  F And also there does not seem to be observed any real problem with justH dropping the misdirected packets, so I wonder what the actual impact is,4 or with the feature enabled, how reproducable it is.       [.source.locking]locking.c  E No updates seem to be needed from 2.2.12, and this has quite a bit ofe VMS specific changes.c    ! [.source.nmbd]nmbd_serverlistdb.cI  = A time_t type is being checked to see if it is -1.  Bug 1894.cG VMS specific hack is needed to name the new file that is being created.. Adding BUG 1897 to track this.     [.source.nmbd]nmbd_synclists.c  F While the VMS specific hacks could be done with out modifying the UNIX; source, no real point in changing this module at this time.e     [.source.nmbd]nmbd_winsserver.c.  K Same VMS specific hacks as above, plus wins_write_database() is called withnE FALSE instead of TRUE as in UNIX.  This is because VMS can not fork()d( a routine to write it in the background.  J This could be re-written to be an AST routine if another method can not beG found, so that VMS will not have the performance penatly of writing the  file in the forground.  O Alternatively can investigate if some other way of keeping the data in the fileo for VMS may be better.   Keep VMS version.       [.source.nmbd]nmbd_workgroupdb.c    time_t issue being tracked 1894.     [.source.nsswitch]sys_nss.h.  E Tests for values of undefined macros.  A check of 3.0.7 shows this intD modules winbind_nss.h and winbind_nss_linux.h have this minor issue. BUG 1898 filed for tracking.     [.source.nsswitch]wb_client.ch  I VMS specific changes turn this module into a stub.  Unknown as to why the L NSS stuff is not compiled in.  util.c also will need to be changed as it has the same changes.e     [.source.param]LOADPARM.Ci   Lots of VMS specific changes.   G One thing that could cause confusion is that the defaults are different H for several parameters on VMS:  bPosixLocking, bOplocks, bLevel2Oplocks, bEncryptPasswords, bStatCache.  A VMS is comenting out the lp_locking()/lp_share_modes() functions.r   Also the file_lines_pload().  : Replaced snprintf to be compatible with the rest of Samba.     [.source.param]params.ce  G VMS has an additional case for '\r' because of file system differences. : Bug 1899 logged to get it into the 3.0.7 stream and later.  8 2.2.12 has some bug fixes with adding a const parameter.   Merge the fixes.     [.source.passdb]passdb.c  I Not sure of the impact of the VMS specific changes.  It looks like it wasrI just making an internal mapping name, so having it say UNIX or VMS reallyu; should not matter.  Keep VMS changes for now, but will have E to find out the impact of this.  It may break an existing database ifsH it is reverted back to the UNIX version, and a conversion utility is not	 provided.d     [.source.passdb]pass_check.c  G VMS specific modifications needed as the support routines are returningeH the encrypted password hash in binary instead of encoded as an ASCII HEXJ string.  Recommend changing the VMS support routines in the future so that7 the VMS specific hacks can be removed from this module.o  ! For now, keep VMS specific hacks.n     [.source.passdb]pdb_smbpasswd.cc  I VMS specific change to handle 48 bit ino_t.  VMS specific changes to makes, sure that temp file is properly interpreted.  5 SAMBA 2.2.12 has a change that needs to be merged in.c     [.source.passdb]secrets.cb  F Keep VMS specific changes for casts.  Need to trace down const issues.     [.source.printing]lpq_parse.c    Keep VMS specific changes.     [.source.printing]nt_printing.ct  D SAMBA 2.2.12 has a change that should not change the code generated.     [.source.printing]pcap.c  B VMS specific change to indicate if no printcap name is configured.D Keep VMS specific version until it is verified that the existance of! a printcap for VMS is not needed.a     [.source.printing]printfsp.c  . VMS specific change for 48 bit ino_t handling.     [.source.printing]printing.c  D VMS specific change to compensate for fstat() not returning the true4 size for a file open for write kept from older port.0 fstat() call apparently does not use VFS system.      [.source.rpcclient]cmd_spoolss.c  G This module has a duplicate global symbol for get_short_archi.  This isA@ exposed in the VMS port because only one .OLB is currently used.  5 The VMS port currently does not compile this routine.   H In SAMBA 3.0.7. the routine has a different name, so no future conflict.    " [.source.rpc_client]cli_netlogon.c  I Apparently there is another module with the same name in 2.2.x in LIBSMB,oE so there is a VMS specific hack to specify a module name so they bothr can fit in one .OLB file.w  G Samba 3.0.7 does not seem to have a second module named cli_netlogon.c.f  C Also there is a macro test for UNUSED_CODE that is with #if instead ; of #ifdef.  This test is not present in the 3.0.7. release.g    ( [.source.rpc_client]cli_spoolss_notify.c  ? A VMS specific fix for a test of an unsigned value equal to -1.r  & This fix is not needed in SAMBA 3.0.7.    " [.source.rpc_parse]parse_spoolss.c  G On the 2.2.12 code, a cast is missing on the return of prs_alloc_mem().   K This cast is not missing in the 3.0.7 stream.  Usage of the prs_alloc_mem()mE call seems to indicate that it should be returning a pointer to void.,  I 2.2.8 version kept.  I do not know if it was modified for VMS to have thet- cast as there is no edit history in the file.      [.SOURCE.RPC_PARSE]PARSE_SRV.C  N Fixes for the casts are missing from 2.2.12, but present in the 3.0.7 release. Keep older version.     [.SOURCE.RPC_SERVER]SRV_PIPE.C;1   Changed in 2.2.11V    & [.SOURCE.RPC_SERVER]SRV_SPOOLSS_NT.C;1   Changed in 2.2.11"     [.SOURCE.SMBD]CHGPASSWD.C;1c  D Inconsistant tests for the DEBUG_PASSWORD macro are still present inD other modules in SAMBA 3.0.7.  Bug 1903 entered to track this issue.     [.SOURCE SMBD]BLOCKING.C;1  - Keep VMS specific version as has needed cast.S     [.SOURCE.SMBD]CONNECTION.C;1   VMS specific version kept.     [.SOURCE.SMBD]CLOSE.C;1t  H VMS specific version has special handling on close.  Appears to be doing a truncate.      [.SOURCE.SMBD]DFREE.C;3e  J VMS disabling dfree_command from smb.conf.  Need to verify if the code can; possibly work, and the default SMB.CONF does not enable it.l     [.SOURCE.SMBD]ERROR.C;2i  F Apparently there is another module with the same name in 2.2.x in LIB,E so there is a VMS specific hack to specify a module name so they both. can fit in one .OLB file..  @ Samba 3.0.7 does not seem to have a second module named error.c.     [.SOURCE.SMBD]FILENAME.C  I SAMBA 2.2.12 has fixes to apparently prevent a buffer overflow.  There isSB also a VMS specific change in 2.2.8 to disable the lstat vfs call.  E As the VMS specific change can be handled in the wrapper library, theo 2.2.12 version will be used.     [.SOURCE.SMBD]FILES.C   - Keep VMS specific hacks for ino_t operations.r     [.SOURCE.SMBD]MANGLE.C  9 2.2.12 has a fix to apparently prevent a buffer overflow.n     [.source.smbd]mangle_hash.c.  C 2.2.12 has a fix to apparently prevent a buffer overflow, and a VMS : specific change is also apparently needed to be merged in.     [.SOURCE.SMBD]MANGLE_HASH2.C  9 2.2.12 has a fix to apparently prevent a buffer overflow./     [.SOURCE.SMBD]NTTRANS.C   & 2.2.12 has a change to clear a buffer.     [.SOURCE.SMBD]OPEN.C  < Keep VMS version.  Revisit when converting to full VFS mode.     [.SOURCE.SMBD]OPLOCK.C  > Keep VMS version as it has the processing of the 48 bit ino_t.     [.SOURCE.SMBD]OPLOCK_LINUX.C  @ Only difference is that VMS version had special case handling toE change /dev/null/ to NL:.  The DEC C RTL already does the conversion.s  $ Replacing with SAMBA 2.2.12 version.     [.SOURCE.SMBD]PASSWORD.C  ; Apparently a fix is needed for a buffer length calculation.dD Inconsistant tests for the DEBUG_PASSWORD macro are still present inI other modules in SAMBA 3.0.7.  Bug 1903 was entered earlier to track this  issue.     [.source.smbd]reply.cc  G Has a VMS specific hack to report it as "OpenVMS" in the session string L instead of "Unix".  BUG 1904 entered as an enhancement request to allow this to be set in the config.h file.l  K Has a VMS specific hack to change the process name.  Bug 1905 to track thisoK as an OpenVMS specific enhancement to set a call for this in the UNIX 3.0.71 stream.o  H Has a VMS specific hack to not use vfs_ops.lstat().  This is better delt with elsewhere.e  N With 2.2.12 there are changes to apparently to fix buffer overflow conditions.     [.source.smbd]sec_ctx.cs   Keep VMS specific changes.     [.SOURCE.SMBD]SERVER.C  J Quite a bit of VMS specific changes to handle being started from the TCPIP dispatcher.e  J There is a VMS specific change to prevent changing the log file directory.  J Confirmed with Jean-Yves Collot that preventing changing the log file is a> bug, so that will be fixed.  Otherwise keep the other changes.     [.SOURCE.SMBD]STATCACHE.Ct  E There are changes to statcache.c that appears to be to prevent buffery overflow issues.     [.SOURCE.SMBD]TRANS2.C  > This has VMS specific changes for the ino_t and for vfs_lstat.  M It also appears that there is a small update to this module for SAMBA 2.2.12.d  N Remove the vfs_lstat vms specific hacks and merge in the SAMBA 2.2.12 changes.       [.SOURCE.SMBD]VFS-WRAP.C  M This has a VMS specific change, that may need to be removed when VMS specifict: VFS files are written.  It is for the ftruncate() wrapper.     [.SOURCE.SMBD]VFS.Ce  2 There are VMS specific changes for ino_t handling.  , Some routines are changed with SAMBA 2.2.12.  L There is a section of code that is not compiled for VMS involving extensions
 of a file.   Merge the changes together.o     [.source.smbwrapper]smbw.h  G VMS specific changes to remap /dev/null are not needed, so replace withe 2.2.11 version.b     [.source.tdb]spinlock.c   6 Some changes for 2.2.12 that allow a standalone build.  A Inconsistent test of the STANDALONE macro still present in 3.0.7.u Bug 1917 entered.m  E There is a VMS specific modification to make tdb_clear_spinlocks just, return nothing.f     [.SOURCE.TDB]TDBDUMP.C   Replace with 2.2.12 version.  + Then fix unsigned/signed pointer mis-match.      [.SOURCE.TDB]TDBTOOL.C  2 Have the wrong edit tag on my previous edit.  Fix.$ VMS version is missing two features.  A SAMBA 2.2.12 Version has type mismatch on the print_*() routines.b Submitted fix as BUG 1927.     [.source.tdb]TDBUTIL.C  I Need to resolve cast issues from the last edit at some time, but now now.s    ! [.SOURCE.UTILS]MAKE_SMBCODEPAGE.c   C Only diffence is the edit history, which obviously has an error thec tag for my last edit.9   Restore to 2.2.12 version.  H Now find that I have missed that the compiler has dignosed a program bugI where the wrong information will be reported by the program when an error I occurs.  This program is not present in 3.0.7, so no bug report is filed.a     [.SOURCE.UTILS]NMBLOOKUP.C  ; DEBUGLEVEL now defaults to 1.  Replace with 2.2.12 version.c       [.SOURCE.UTILS]SMBCONTROL.C   D VMS has a specific modification for entering hexadecimal process ID.     [.SOURCE.UTILS]SMBPASSWD.C  A Replace with 2.2.12 version as there are no VMS specific changes.t     [.SOURCE.UTILS]STATUS.Cn  2 I have the reason for the last edit history wrong.J Other VMS changes are for display and entering using VMS specific formats.  2 Macro test for HAVE_SENDFILE is now WITH_SENDFILE.  F Bug 1921 logged to track the OpenVMS specific display issues with some
 datatypes.  F Fixup ino_t display in the locks section.  It is still not usuable for" VMS.  That will take a later pass.     [.SOURCE.WEB]CGI.C  G Massive VMS changes to support launching from TCPIP service dispatcher. & It may be able to do this more simply.  + For now, replace all sprintf with snprintf.      [.SOURCE.WEB]DIAGNOSE.Ca  E Has VMS specific change to inhibit testing to see if SMBD is running.MN As this test would never produce the correct result, this code should be kept.       [.source.web]startstop.c   Many VMS specific changes.     [.source.web]statuspage.cE  H VMS specific changes to support launching from TCPIP service dispatcher.  1 VMS display format for some things are different..  * Wrong tag on last comment edit that I did.  " Replace all sprintf with snprintf.     [.source.web]swat.cd  H VMS specific changes to support launching from TCPIP service dispatcher.  1 VMS display format for some things are different.h  * Wrong tag on last comment edit that I did.  " replace all sprintf with snprintf.     [.source.vms]build.com  1 Fix to not attempt a link when the compile fails.i     [.source.vms]config.hi  I Need to #define vfs_GetWd to be samba_vfs_getwd, new symbol conflict with.
 samba 2.2.12.g  @ Add a #define for the maximium VMS filename size for global use.     [.source.vms]incl.he  * getpass routine missing a const qualifier.     [.source.vms]vms_support.c  * getpass routine missing a const qualifier.     [.source.vms]stm_read.cs  : Replace sprintf with either snprintf or strncpy as needed.B Fix fname1 having too small a buffer to contain an ODS-5 filename.J Put in hack to fsync() file after 1 byte write from client which is needed8 for SAMBA to return the current file size to the client.     [.source.vms]cvt_filespec.c   & Replace sprintf, strcat with snprintf.     [.source.vms]vms_tricks.ci  F Introduce strict prototypes.  Fix error introduced with previous 2.2.8 edit that I did.    ? History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.CLIENT.CMS]]  f   6-OCT-2004 20:48:27 MALMBERG REPLACE SMBMOUNT.C(2) "Module not used on VMS, restore to UNIX version"    @ History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.INCLUDE.CMS]  4   6-OCT-2004 21:46:45 MALMBERG REPLACE INCLUDES.H(3)3 	"SAMBA 2.2.12 update - Does not really affect VMS"c2   6-OCT-2004 21:50:45 MALMBERG REPLACE MANGLE.H(2)8 	"SAMBA 2.2.12 - pass length to prevent buffer overflow"1   6-OCT-2004 22:46:10 MALMBERG REPLACE PROTO.H(3)V  	"SAMBA 2.2.12 - new prototypes"0   6-OCT-2004 22:49:17 MALMBERG REPLACE SIDS.H(2)6 	"SAMBA 2.2.12 - new global symbol global_sid_builtin"0   6-OCT-2004 22:49:52 MALMBERG REPLACE SIDS.H(3)6 	"SAMBA 2.2.12 - new global symbol global_sid_builtin"3   6-OCT-2004 22:54:14 MALMBERG REPLACE VERSION.H(2)e 	"A new version -  2.2.12"7   7-OCT-2004 20:45:53 MALMBERG REPLACE SAFE_STRING.H(2)b; 	"SAMBA 2.2.12 - disable sprintf() prevent buffer overflow"p/   7-OCT-2004 21:21:01 MALMBERG REPLACE VFS.H(2)h2 	"SAMBA 2.2.12 - restore to Original UNIX version"1  17-OCT-2004 21:17:30 MALMBERG REPLACE PROTO.H(4)e& 	"Fix SIG_ATOMIC_T type in prototypes"    < History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.LIB.CMS]  6   7-OCT-2004 22:11:36 MALMBERG REPLACE INTERFACES.C(3) 	"update for 2.2.12"6   7-OCT-2004 23:02:21 MALMBERG REPLACE SUBSTITUTE.C(2)2 	"SAMBA 2.2.12 - restore to Original UNIX version"2  17-OCT-2004 21:21:29 MALMBERG REPLACE SMBRUN.C(3); 	"Replace snprintf.  log filename had HP reserved $ in it."s    ? History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.LIBSMB.CMS]]  4   8-OCT-2004 13:28:25 MALMBERG REPLACE CLIDGRAM.C(2) 	"SAMBA 2.2.12 - New version"r4   8-OCT-2004 15:05:14 MALMBERG REPLACE CLIDGRAM.C(3) 	"SAMBA 2.2.12 - New version" 7   8-OCT-2004 15:10:44 MALMBERG REPLACE CLI_SPOOLSS.C(3)s= 	"SAMBA 2.2.12 version is the same with out VMS edit history"     > History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.PARAM.CMS]  2   9-OCT-2004 12:15:21 MALMBERG REPLACE PARAMS.C(2)  	"Merge in SAMBA 2.2.12 changes"2   9-OCT-2004 12:16:56 MALMBERG REPLACE PARAMS.C(3)( 	"Merge in all the SAMBA 2.2.12 changes"4  17-OCT-2004 21:23:31 MALMBERG REPLACE LOADPARM.C(3) 	"Replace snprintf."    ? History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.PASSDB.CMS]_  9   9-OCT-2004 18:50:02 MALMBERG REPLACE PDB_SMBPASSWD.C(3)P# 	"Merge in the SAMBA 2.2.12 change"     A History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.PRINTING.CMS]W  7   9-OCT-2004 20:18:30 MALMBERG REPLACE NT_PRINTING.C(2)7 	"update for 2.2.12"    C History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.RPC_SERVER.CMS]e  4  10-OCT-2004 18:03:49 MALMBERG REPLACE SRV_PIPE.C(2) 	"update for 2.2.12"4  10-OCT-2004 18:04:26 MALMBERG REPLACE SRV_PIPE.C(3) 	"update for 2.2.12":  10-OCT-2004 18:06:40 MALMBERG REPLACE SRV_SPOOLSS_NT.C(2) 	"update for 2.2.12"    = History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.SMBD.CMS]i  4  10-OCT-2004 19:56:29 MALMBERG REPLACE FILENAME.C(2) 	"update for 2.2.12"2  10-OCT-2004 20:00:40 MALMBERG REPLACE MANGLE.C(2) 	"update for 2.2.12"7  10-OCT-2004 20:14:27 MALMBERG REPLACE MANGLE_HASH.C(2)h1 	"merge in VMS hacks with the new 2.2.12 version" 8  10-OCT-2004 20:17:50 MALMBERG REPLACE MANGLE_HASH2.C(2) 	"Update to 2.2.12 version" 3  10-OCT-2004 20:21:37 MALMBERG REPLACE NTTRANS.C(2)s 	"Update to 2.2.12 version"e8  10-OCT-2004 20:41:33 MALMBERG REPLACE OPLOCK_LINUX.C(2) 	"Update to 2.2.12 version"l4  10-OCT-2004 20:48:05 MALMBERG REPLACE PASSWORD.C(3)5 	"Update to 2.2.12 version + small fix to macro test" 1  10-OCT-2004 22:49:47 MALMBERG REPLACE REPLY.C(2) ; 	"Update to 2.2.12 version + VMS specific cosmetic changes"h5  10-OCT-2004 23:16:55 MALMBERG REPLACE STATCACHE.C(2)  	"Update to 2.2.12 version" 2  11-OCT-2004 21:31:41 MALMBERG REPLACE SERVER.C(3): 	"Enable setting the log directory from the command line."/  11-OCT-2004 22:36:40 MALMBERG REPLACE VFS.C(3)2, 	"Merge VMS 2.2.8 changes to 2.2.12 version"2  17-OCT-2004 21:29:16 MALMBERG REPLACE TRANS2.C(3)! 	"Merge in SAMBA 2.2.12 changes."e/  17-OCT-2004 21:30:20 MALMBERG REPLACE VFS.C(4)  	"Fix bad ino_t edit."    C History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.SMBWRAPPER.CMS]h  0  11-OCT-2004 22:48:52 MALMBERG REPLACE SMBW.H(2) 	"update for 2.2.12"0  11-OCT-2004 22:49:37 MALMBERG REPLACE SMBW.H(3) 	"update for 2.2.12"    < History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.TDB.CMS]  4  11-OCT-2004 23:31:42 MALMBERG REPLACE SPINLOCK.C(2) 	"update for 2.2.12"3  11-OCT-2004 23:34:44 MALMBERG REPLACE TDBDUMP.C(2)n 	"update for 2.2.12"3  13-OCT-2004 21:33:27 MALMBERG REPLACE TDBTOOL.C(3)t 	"Fix edit comment"33  17-OCT-2004 21:31:48 MALMBERG REPLACE TDBDUMP.C(3)s$ 	"Signed/unsigned pointer mis-match"    > History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.UTILS.CMS]  <  11-OCT-2004 23:49:26 MALMBERG REPLACE MAKE_SMBCODEPAGE.C(3) 	"update for 2.2.12"5  11-OCT-2004 23:58:03 MALMBERG REPLACE NMBLOOKUP.C(2)  	"update for 2.2.12"5  12-OCT-2004 00:02:46 MALMBERG REPLACE SMBPASSWD.C(2)e 	"update for 2.2.12"2  12-OCT-2004 22:41:00 MALMBERG REPLACE STATUS.C(3) 	"Update for SAMBA 2.2.12"<  17-OCT-2004 21:39:01 MALMBERG REPLACE MAKE_SMBCODEPAGE.C(4)$ 	"Correct error report information."2  17-OCT-2004 21:42:16 MALMBERG REPLACE STATUS.C(4) 	"Start to fix ino_t display."    < History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.VMS.CMS]  3  17-OCT-2004 21:45:22 MALMBERG REPLACE BUILD.COM(3)i/ 	"Attempt to abort linking when compiles fail."r2  17-OCT-2004 21:47:33 MALMBERG REPLACE CONFIG.H(3). 	"filename length macro, SAMBA 2.2.12 updates"0  17-OCT-2004 21:52:23 MALMBERG REPLACE INCL.H(3)" 	"getpass missing const qualifier"7  17-OCT-2004 21:53:34 MALMBERG REPLACE VMS_SUPPORT.C(3)c" 	"getpass missing const qualifier"8  17-OCT-2004 21:55:07 MALMBERG REPLACE CVT_FILESPEC.C(3) 	"replace snprintf"h6  17-OCT-2004 22:01:20 MALMBERG REPLACE VMS_TRICKS.C(3)+ 	"Fix error, introduce strict prototyping." 4  17-OCT-2004 22:03:45 MALMBERG REPLACE STM_READ.C(3)1 	"stat() hack, fix buffer size, replace snprintf"     < History of CMS Library CMS_ROOT:[SAMBA_2_2_X.SOURCE.WEB.CMS]  6  12-OCT-2004 22:08:52 MALMBERG REPLACE STATUSPAGE.C(3) 	"Fix previous edit comment"0  12-OCT-2004 22:23:42 MALMBERG REPLACE SWAT.C(3) 	"Fix previous edit comment"/  17-OCT-2004 22:05:43 MALMBERG REPLACE CGI.C(2)S  	"Replace sprintf with snprintf"6  17-OCT-2004 22:06:18 MALMBERG REPLACE STATUSPAGE.C(4)  	"Replace sprintf with snprintf"0  17-OCT-2004 22:06:40 MALMBERG REPLACE SWAT.C(4)  	"Replace sprintf with snprintf"     [.source.vms]dir_diff.comw   	Fix typo in report.  F @populate_cms_class JEM_2_2_12_VMS82_20041017 cms_root:[samba_2_2_x] -%   "First pass at SAMBA 2.2.12 update"e    