[Samba] another patch for samba-2.2.4

Gerald Carter jerry at samba.org
Thu May 9 20:52:27 GMT 2002


FYI....

If you want to use notation like 192.168.1.0/24 in 
hosts allow/deny lines, you will need to apply this patch
and recompile.  








cheers, jerry 
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
-------------- next part --------------
--- /opt/src/samba-2.2.4/source/lib/access.c	Thu May  2 20:03:07 2002
+++ lib/access.c	Thu May  9 12:28:59 2002
@@ -33,7 +33,7 @@
         if (strlen(slash + 1) > 2) {
                 mask = interpret_addr(slash + 1);
         } else {
-		mask = (uint32)((ALLONES >> atoi(slash + 1)) ^ ALLONES);
+		mask = (uint32)((ALLONES << atoi(slash + 1)) ^ ALLONES);
         }
 
 	if (net == INADDR_NONE || mask == INADDR_NONE) {


More information about the samba mailing list