svn commit: samba r16570 - in branches/SAMBA_3_0/source/param: .
Author: crh Date: 2006-06-27 17:58:55 + (Tue, 27 Jun 2006) New Revision: 16570 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16570 Log: Corrected the copyright notice. I had requested and received permission from my management at the University to release under my own copyright. My mistake for entering the wrong info. Modified: branches/SAMBA_3_0/source/param/params.c Changeset: Modified: branches/SAMBA_3_0/source/param/params.c === --- branches/SAMBA_3_0/source/param/params.c2006-06-27 17:55:02 UTC (rev 16569) +++ branches/SAMBA_3_0/source/param/params.c2006-06-27 17:58:55 UTC (rev 16570) @@ -3,9 +3,9 @@ * * This module Copyright (C) 1990-1998 Karl Auer * - * Rewritten almost completely by Christopher R. Hertel - * at the University of Minnesota, September, 1997. - * This module Copyright (C) 1997-1998 by the University of Minnesota + * Rewritten almost completely by Christopher R. Hertel, 1997. + * This module Copyright (C) 1997-1998 by Christopher R. Hertel + * * -- ** * * This program is free software; you can redistribute it and/or modify
svn commit: samba r2706 - in branches/SAMBA_3_0/source/utils: .
Author: crh Date: 2004-09-28 02:13:53 + (Tue, 28 Sep 2004) New Revision: 2706 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_3_0/source/utils&rev=2706&nolog=1 Log: The code that prints the remote MAC address (from the statistics section of the response packet) was outside of the if() that determined whether the query was successful or not. As a result, the MAC address would print out even if there was no MAC address. At least the garbage it printed was relatively consistent. :) I moved the MAC printing into the if() block and added an 'else' to print "No reply..." if the query fails. Chris -)- Modified: branches/SAMBA_3_0/source/utils/nmblookup.c Changeset: Modified: branches/SAMBA_3_0/source/utils/nmblookup.c === --- branches/SAMBA_3_0/source/utils/nmblookup.c 2004-09-28 01:12:55 UTC (rev 2705) +++ branches/SAMBA_3_0/source/utils/nmblookup.c 2004-09-28 02:13:53 UTC (rev 2706) @@ -118,12 +118,15 @@ cleanname,status[i].type, node_status_flags(status[i].flags)); } + d_printf("\n\tMAC Address = %02X-%02X-%02X-%02X-%02X-%02X\n", + extra.mac_addr[0], extra.mac_addr[1], + extra.mac_addr[2], extra.mac_addr[3], + extra.mac_addr[4], extra.mac_addr[5]); + d_printf("\n"); SAFE_FREE(status); + } else { + d_printf("No reply from %s\n\n",inet_ntoa(ip)); } - d_printf("\n\tMAC Address = %02X-%02X-%02X-%02X-%02X-%02X\n", -extra.mac_addr[0], extra.mac_addr[1], extra.mac_addr[2], -extra.mac_addr[3], extra.mac_addr[4], extra.mac_addr[5]); - d_printf("\n"); }
svn commit: samba r2420 - in branches/SAMBA_3_0/source/ubiqx: .
Author: crh Date: 2004-09-19 21:25:24 + (Sun, 19 Sep 2004) New Revision: 2420 WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_3_0/source/ubiqx&rev=2420&nolog=1 Log: Way back at the 1st SambaXP, Simo pointed out a subtle bug related to the interaction between the splay tree code and the code used to find a leaf node. The problem is rare, and with most sites using the newer hashing algorithm it's probably not important to fix it. I have fixed it, however. Modified: branches/SAMBA_3_0/source/ubiqx/ubi_BinTree.c branches/SAMBA_3_0/source/ubiqx/ubi_BinTree.h Changeset: Modified: branches/SAMBA_3_0/source/ubiqx/ubi_BinTree.c === --- branches/SAMBA_3_0/source/ubiqx/ubi_BinTree.c 2004-09-19 12:38:06 UTC (rev 2419) +++ branches/SAMBA_3_0/source/ubiqx/ubi_BinTree.c 2004-09-19 21:25:24 UTC (rev 2420) @@ -26,7 +26,16 @@ * * -- ** * - * Log: ubi_BinTree.c,v + * Log: ubi_BinTree.c,v + * Revision 4.12 2004/06/06 04:51:56 crh + * Fixed a small typo in ubi_BinTree.c (leftover testing cruft). + * Did a small amount of formatting touchup to ubi_BinTree.h. + * + * Revision 4.11 2004/06/06 03:14:09 crh + * Rewrote the ubi_btLeafNode() function. It now takes several paths in an + * effort to find a deeper leaf node. There is a small amount of extra + * overhead, but it is limited. + * * Revision 4.10 2000/06/06 20:38:40 crh * In the ReplaceNode() function, the old node header was being copied * to the new node header using a byte-by-byte copy. This was causing @@ -181,14 +190,15 @@ #include "ubi_BinTree.h" /* Header for this module. */ + /* == ** * Static data. */ static char ModuleID[] = "ubi_BinTree\n\ -\tRevision: 4.10 \n\ -\tDate: 2000/06/06 20:38:40 \n\ -\tAuthor: crh \n"; +\tRevision: 4.12\n\ +\tDate: 2004/06/06 04:51:56\n\ +\tAuthor: crh\n"; /* == ** * Internal (private) functions. @@ -1061,8 +1071,8 @@ * * Input: leader - Pointer to a node at which to start the descent. * - * Output: A pointer to a leaf node selected in a somewhat arbitrary - * manner. + * Output: A pointer to a leaf node, selected in a somewhat arbitrary + * manner but with an effort to dig deep. * * Notes: I wrote this function because I was using splay trees as a * database cache. The cache had a maximum size on it, and I @@ -1071,7 +1081,7 @@ * tend toward the bottom of the tree, meaning that leaf nodes * are good candidates for removal. (I really can't think of * any other reason to use this function.) - *+ In a simple binary tree or an AVL tree, the most recently + *+ In a simple binary tree, or in an AVL tree, the most recently * added nodes tend to be nearer the bottom, making this a *bad* * way to choose which node to remove from the cache. *+ Randomizing the traversal order is probably a good idea. You @@ -1079,25 +1089,55 @@ * in pointers to nodes other than the root node each time. A * pointer to any node in the tree will do. Of course, if you * pass a pointer to a leaf node you'll get the same thing back. + *+ In an unbalanced splay tree, if you simply traverse downward + * until you hit a leaf node it is possible to accidentally + * stumble onto a short path. The result will be a leaf node + * that is actually very high in the tree--possibly a very + * recently accessed node. Not good. This function can follow + * multiple paths in an effort to find a leaf node deeper + * in the tree. Following a single path, of course, is the + * fastest way to find a leaf node. A complete traversal would + * be sure to find the deepest leaf but would be very costly in + * terms of time. This function uses a compromise that has + * worked well in testing. * * ** */ { - ubi_btNodePtr follower = NULL; + #define MAXPATHS 4 /* Set higher for more maximum paths, lower for fewer. */ + ubi_trNodePtr p[MAXPATHS]; + ubi_trNodePtr q[MAXPATHS]; int whichway = ubi_trLEFT; + int paths; + int i, j; - while( NULL != leader ) + /* If the subtree is empty, return NULL. + */ + if( NULL == leader ) +return( NULL ); + + /* Initialize the p[] array with a pointer to the single node we've been + * given as a starting point. + */ + p[0] = leader; + paths
CVS update: samba/source/nmbd
Date: Fri Mar 12 20:27:23 2004 Author: crh Update of /data/cvs/samba/source/nmbd In directory dp.samba.org:/tmp/cvs-serv9757 Modified Files: nmbd_winsserver.c Log Message: Bug report 1079 and fix both from Bert Driehuis. This is an odd corner case having to do with <1C> group names (DC names). <1C> group names are called (by MS) "Internet Special Groups", which means that Microsoft's WINS servers will attempt to handle these names in something approximating an RFC1001/1002 compliant manner. The problem being reported here is this: If an initial registration sent by one of the group members is lost (network error, whatever) then subsequent refreshes from that particular machine will also fail. This only happens if the name is already active (because of other group members). In most cases, we (and MS) handle refreshes as registrations if the name is not in the database. In this situation, we missed the corner case. Bert's fix adds an 'else if' that catches the situation in which a refresh for an unlisted IP of an active <1C> group name is received. The refresh is simply handled as a registration when this happens. [Note: Committing in HEAD. I am writing some tools to do registrations and refreshes so that I can test this. I don't have an NT Domain for testing so I'm going to have to fudge. This fix is small (I cleaned up some Debug messages and comments in addition to the fix) and if you want to test it with 3.0.x you can just copy the HEAD version into your 3.0.x tree and recompile.] Revisions: nmbd_winsserver.c 1.60 => 1.61 http://www.samba.org/cgi-bin/cvsweb/samba/source/nmbd/nmbd_winsserver.c.diff?r1=1.60&r2=1.61
CVS update: samba/source/smbd
Date: Wed Jan 28 23:13:22 2004 Author: crh Update of /data/cvs/samba/source/smbd In directory dp.samba.org:/tmp/cvs-serv15522/smbd Modified Files: lanman.c Log Message: This is Simo's patch for the NetShareEnum() bug which caused us to return share names longer than 12 bytes. The function now filters out names longer than 12 bytes (which is compatible with Windows behavior). A better fix might be to store short names along with any names longer than 12 bytes, using a simple (very) name mangling. I'm committing in HEAD. If there are no problems this can easily be merged into 3.0.x. Chris -)- Revisions: lanman.c1.99 => 1.100 http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/lanman.c.diff?r1=1.99&r2=1.100
CVS update: samba/source/utils
Date: Mon Sep 15 17:01:45 2003 Author: crh Update of /data/cvs/samba/source/utils In directory dp.samba.org:/tmp/cvs-serv3882/source/utils Modified Files: testparm.c Log Message: Fixed test and wording for long share names. The RAP NetShareEnum() call has a length limit of 12 characters (not 8, as previously tested). Took DaveCB's suggested and added a note listing some of the client systems that might be affected. Revisions: testparm.c 1.72 => 1.73 http://www.samba.org/cgi-bin/cvsweb/samba/source/utils/testparm.c.diff?r1=1.72&r2=1.73
CVS update: samba/source/utils
Date: Mon Sep 15 17:01:26 2003 Author: crh Update of /data/cvs/samba/source/utils In directory dp.samba.org:/tmp/cvs-serv3498/source/utils Modified Files: Tag: SAMBA_3_0 testparm.c Log Message: Fixed test and wording for long share names. The RAP NetShareEnum() call has a length limit of 12 characters (not 8, as previously tested). Took DaveCB's suggested and added a note listing some of the client systems that might be affected. Revisions: testparm.c 1.45.2.20 => 1.45.2.21 http://www.samba.org/cgi-bin/cvsweb/samba/source/utils/testparm.c.diff?r1=1.45.2.20&r2=1.45.2.21
CVS update: sambaweb
Date: Wed Aug 20 02:25:21 2003 Author: crh Update of /data/cvs/sambaweb In directory dp.samba.org:/tmp/cvs-serv8152 Modified Files: samba.html Log Message: Minor formatting changes. No content change. I removed a space between "said" and ":" because, on my screen, the colon was appearing on a line by itself. I also placed the Darl McBride quotation into a block. Undo as you see fit. Revisions: samba.html 1.201 => 1.202 http://www.samba.org/cgi-bin/cvsweb/sambaweb/samba.html.diff?r1=1.201&r2=1.202
CVS update: sambaweb/images
Date: Sat Jul 12 17:56:35 2003 Author: crh Update of /data/cvs/sambaweb/images In directory dp.samba.org:/tmp/cvs-serv28622 Added Files: impCIFS.png Log Message: Added a book image for the blurb for my book. Revisions: impCIFS.png NONE => 1.1 http://www.samba.org/cgi-bin/cvsweb/sambaweb/images/impCIFS.png?rev=1.1
CVS update: sambaweb/docs
Date: Sat Jul 12 17:56:00 2003 Author: crh Update of /data/cvs/sambaweb/docs In directory dp.samba.org:/tmp/cvs-serv28521 Modified Files: index.html Log Message: Added a blurb for my book. :) Revisions: index.html 1.62 => 1.63 http://www.samba.org/cgi-bin/cvsweb/sambaweb/docs/index.html.diff?r1=1.62&r2=1.63
CVS update: sambaweb
Date: Sun Jul 6 05:25:37 2003 Author: crh Update of /data/cvs/sambaweb In directory dp.samba.org:/tmp/cvs-serv1888 Modified Files: books.html Log Message: Filled in a few publisher links. Revisions: books.html 1.45 => 1.46 http://www.samba.org/cgi-bin/cvsweb/sambaweb/books.html.diff?r1=1.45&r2=1.46
CVS update: sambaweb
Date: Sun Jul 6 05:12:36 2003 Author: crh Update of /data/cvs/sambaweb In directory dp.samba.org:/tmp/cvs-serv686 Modified Files: books.html Log Message: Added a link for online purchase of "Samba Pocket Reference". Revisions: books.html 1.44 => 1.45 http://www.samba.org/cgi-bin/cvsweb/sambaweb/books.html.diff?r1=1.44&r2=1.45
CVS update: sambaweb/docs
Date: Sun Jul 6 05:07:46 2003 Author: crh Update of /data/cvs/sambaweb/docs In directory dp.samba.org:/tmp/cvs-serv32722/docs Modified Files: index.html Log Message: My book is no longer a "work-in-progress". :) Revisions: index.html 1.61 => 1.62 http://www.samba.org/cgi-bin/cvsweb/sambaweb/docs/index.html.diff?r1=1.61&r2=1.62
CVS update: samba/source/include
Date: Thu Mar 27 05:17:28 2003 Author: crh Update of /data/cvs/samba/source/include In directory dp.samba.org:/tmp/cvs-serv14297 Modified Files: Tag: SAMBA_3_0 safe_string.h Log Message: The definition of pstrcpy_base(), and the preceeding comments, were given twice (probably a cut/paste error). Revisions: safe_string.h 1.12.2.7 => 1.12.2.8 http://www.samba.org/cgi-bin/cvsweb/samba/source/include/safe_string.h?r1=1.12.2.7&r2=1.12.2.8
CVS update: samba/source/include
Date: Thu Mar 27 05:11:25 2003 Author: crh Update of /data/cvs/samba/source/include In directory dp.samba.org:/tmp/cvs-serv13582/include Modified Files: safe_string.h Log Message: The definition of pstrcpy_base(), and the preceeding comments, were given twice (probably a cut/paste error). The definition of pstrcpy_base(), and the preceeding comments, were given twice (probably a cut/paste error). Revisions: safe_string.h 1.24 => 1.25 http://www.samba.org/cgi-bin/cvsweb/samba/source/include/safe_string.h?r1=1.24&r2=1.25
CVS update: samba/source/client
Date: Tue Jan 7 04:33:43 2003 Author: crh Update of /data/cvs/samba/source/client In directory dp.samba.org:/tmp/cvs-serv28986/source/client Modified Files: client.c Log Message: Added code to the handling of the -M option to ensure that we default to port 139 for that option. The NetBIOS Messenger Service doesn't run on a non-NBT port. Revisions: client.c1.228 => 1.229 http://www.samba.org/cgi-bin/cvsweb/samba/source/client/client.c?r1=1.228&r2=1.229
CVS update: samba/source/client
Date: Tue Jan 7 04:26:37 2003 Author: crh Update of /data/cvs/samba/source/client In directory dp.samba.org:/tmp/cvs-serv27604 Modified Files: Tag: SAMBA_3_0 client.c Log Message: Added code to the handling of the -M option to ensure that we default to port 139 for that option. The NetBIOS Messenger Service doesn't run on a non-NBT port. Revisions: client.c1.209.2.8 => 1.209.2.9 http://www.samba.org/cgi-bin/cvsweb/samba/source/client/client.c?r1=1.209.2.8&r2=1.209.2.9
CVS update: samba/source/libsmb
Date: Fri Jan 3 04:35:09 2003 Author: crh Update of /data/cvs/samba/source/libsmb In directory dp.samba.org:/tmp/cvs-serv23900 Modified Files: Tag: SAMBA_3_0 smbencrypt.c Log Message: Fixed some simple typos, including one that would cause the wrong value to be printed in a DEBUG() message. Revisions: smbencrypt.c1.68.2.3 => 1.68.2.4 http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/smbencrypt.c?r1=1.68.2.3&r2=1.68.2.4
CVS update: samba/source/libsmb
Date: Fri Jan 3 04:32:23 2003 Author: crh Update of /data/cvs/samba/source/libsmb In directory dp.samba.org:/tmp/cvs-serv23681 Modified Files: smbencrypt.c Log Message: Fixed some simple typos, including one that would have resulted in a DEBUG() message printing the wrong value. Revisions: smbencrypt.c1.79 => 1.80 http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/smbencrypt.c?r1=1.79&r2=1.80
CVS update: sambaweb
Date: Mon Dec 30 20:27:38 2002 Author: crh Update of /data/cvs/sambaweb In directory dp.samba.org:/tmp/cvs-serv15739 Modified Files: books.html Log Message: Typo. ...or perhaps "lnaguage" is Spanish for "Sprache"... ;) Revisions: books.html 1.37 => 1.38 http://www.samba.org/cgi-bin/cvsweb/sambaweb/books.html?r1=1.37&r2=1.38
CVS update: sambaweb/docs
Date: Wed Dec 18 23:10:49 2002 Author: crh Update of /data/cvs/sambaweb/docs In directory dp.samba.org:/tmp/cvs-serv27817 Modified Files: index.html Log Message: One more formatting tweak. Revisions: index.html 1.54 => 1.55 http://www.samba.org/cgi-bin/cvsweb/sambaweb/docs/index.html?r1=1.54&r2=1.55
CVS update: sambaweb/docs
Date: Wed Dec 18 22:32:53 2002 Author: crh Update of /data/cvs/sambaweb/docs In directory dp.samba.org:/tmp/cvs-serv24326 Modified Files: index.html Log Message: Fiddled the formatting of the book listings. Revisions: index.html 1.53 => 1.54 http://www.samba.org/cgi-bin/cvsweb/sambaweb/docs/index.html?r1=1.53&r2=1.54
CVS update: sambaweb/docs
Date: Wed Dec 18 22:23:23 2002 Author: crh Update of /data/cvs/sambaweb/docs In directory dp.samba.org:/tmp/cvs-serv23737 Modified Files: index.html Log Message: Fixed broken links to the SNIA CIFS reference and the old Leach/Perry article. Revisions: index.html 1.52 => 1.53 http://www.samba.org/cgi-bin/cvsweb/sambaweb/docs/index.html?r1=1.52&r2=1.53
CVS update: sambaweb/docs
Date: Mon Nov 25 01:07:35 2002 Author: crh Update of /data/cvs/sambaweb/docs In directory dp.samba.org:/tmp/cvs-serv14629 Modified Files: index.html Log Message: Moved "Samba Year 2000 (Y2K) issues" from the "New Samba Documentation" section into the "Older (but hopefully still valid) misc docs" section. Revisions: index.html 1.51 => 1.52 http://www.samba.org/cgi-bin/cvsweb/sambaweb/docs/index.html?r1=1.51&r2=1.52
CVS update: sambaweb
Date: Mon Nov 25 00:03:38 2002 Author: crh Update of /data/cvs/sambaweb In directory dp.samba.org:/tmp/cvs-serv11427 Modified Files: samba.html Log Message: Minor typo (it said "tarballs is"). Revisions: samba.html 1.166 => 1.167 http://www.samba.org/cgi-bin/cvsweb/sambaweb/samba.html?r1=1.166&r2=1.167
CVS update: sambaweb
Date: Sun Nov 24 23:49:02 2002 Author: crh Update of /data/cvs/sambaweb In directory dp.samba.org:/tmp/cvs-serv10709 Modified Files: index.html Log Message: The jCIFS list link needed a description-ette. Revisions: index.html 1.96 => 1.97 http://www.samba.org/cgi-bin/cvsweb/sambaweb/index.html?r1=1.96&r2=1.97
CVS update: samba/docs/docbook/manpages
Date: Tue Nov 19 22:08:11 2002 Author: crh Update of /data/cvs/samba/docs/docbook/manpages In directory dp.samba.org:/tmp/cvs-serv19838 Modified Files: Tag: SAMBA_3_0 smb.conf.5.sgml Log Message: Likewise. Two small typos caught my eye so I fixed them. Revisions: smb.conf.5.sgml 1.24.2.9 => 1.24.2.10 http://www.samba.org/cgi-bin/cvsweb/samba/docs/docbook/manpages/smb.conf.5.sgml?r1=1.24.2.9&r2=1.24.2.10
CVS update: samba/docs/docbook/manpages
Date: Tue Nov 19 22:05:00 2002 Author: crh Update of /data/cvs/samba/docs/docbook/manpages In directory dp.samba.org:/tmp/cvs-serv19587 Modified Files: smb.conf.5.sgml Log Message: Fixed two very, very minor typos (that sort of just annoyed me). Revisions: smb.conf.5.sgml 1.64 => 1.65 http://www.samba.org/cgi-bin/cvsweb/samba/docs/docbook/manpages/smb.conf.5.sgml?r1=1.64&r2=1.65
CVS update: samba/examples
Date: Sun Nov 10 03:48:20 2002 Author: crh Update of /data/cvs/samba/examples In directory dp.samba.org:/tmp/cvs-serv31549/examples Modified Files: Tag: SAMBA_2_2 smb.conf.default Log Message: Teeny tiny typo. It said 'unix passwword sync' (twwo 'w's). Revisions: smb.conf.default1.11.20.5 => 1.11.20.6 http://www.samba.org/cgi-bin/cvsweb/samba/examples/smb.conf.default?r1=1.11.20.5&r2=1.11.20.6
CVS update: sambaweb/vendors
Date: Tue Sep 17 19:46:10 2002 Author: crh Update of /data/cvs/sambaweb/vendors In directory dp.samba.org:/tmp/cvs-serv3126 Modified Files: applianceware.html Log Message: Small cleanup. Revisions: applianceware.html 1.1 => 1.2 http://www.samba.org/cgi-bin/cvsweb/sambaweb/vendors/applianceware.html?r1=1.1&r2=1.2