Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > b2b31f8f12ce25fb0a2128354ea26724 > files > 24

cups-1.3.7-30.el5.src.rpm

diff -up cups-1.3.7/conf/cupsd.conf.in.directed-broadcast cups-1.3.7/conf/cupsd.conf.in
--- cups-1.3.7/conf/cupsd.conf.in.directed-broadcast	2008-08-06 18:07:53.000000000 +0100
+++ cups-1.3.7/conf/cupsd.conf.in	2008-08-06 18:08:22.000000000 +0100
@@ -22,7 +22,8 @@ Listen localhost:@DEFAULT_IPP_PORT@
 # Show shared printers on the local network.
 Browsing On
 BrowseOrder allow,deny
-BrowseAllow all
+# (Change '@LOCAL' to 'ALL' if using directed broadcasts from another subnet.)
+BrowseAllow @LOCAL
 
 # Default authentication type, when authentication is required...
 DefaultAuthType Basic
diff -up cups-1.3.7/cups/adminutil.c.directed-broadcast cups-1.3.7/cups/adminutil.c
--- cups-1.3.7/cups/adminutil.c.directed-broadcast	2008-08-06 18:08:34.000000000 +0100
+++ cups-1.3.7/cups/adminutil.c	2008-08-06 18:09:26.000000000 +0100
@@ -1491,7 +1491,11 @@ _cupsAdminSetServerSettings(
 	  cupsFilePuts(temp, "BrowseOrder allow,deny\n");
 
 	  if (new_remote_printers)
-	    cupsFilePuts(temp, "BrowseAllow all\n");
+	  {
+	    cupsFilePuts(temp, "# (Change '@LOCAL' to 'ALL' if using "
+			 "directed broadcasts from another subnet.)\n");
+	    cupsFilePuts(temp, "BrowseAllow @LOCAL\n");
+	  }
 
 	  if (new_share_printers)
 	    cupsFilePuts(temp, "BrowseAddress @LOCAL\n");