#! /bin/sh /usr/share/dpatch/dpatch-run ## fix-show-remote-printers.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad cupsys-1.3.2~/cups/adminutil.c cupsys-1.3.2/cups/adminutil.c --- cupsys-1.3.2~/cups/adminutil.c 2007-07-27 20:26:53.000000000 +0100 +++ cupsys-1.3.2/cups/adminutil.c 2007-10-11 14:51:59.000000000 +0100 @@ -1423,13 +1423,13 @@ while (cupsFileGetConf(cupsd, line, sizeof(line), &value, &linenum)) { if ((!strcasecmp(line, "Port") || !strcasecmp(line, "Listen")) && - (share_printers >= 0 || remote_admin >= 0)) + (share_printers >= 0 || remote_printers >= 0 || remote_admin >= 0)) { if (!wrote_port_listen) { wrote_port_listen = 1; - if (share_printers > 0 || remote_admin > 0) + if (share_printers > 0 || remote_printers > 0 || remote_admin > 0) { cupsFilePuts(temp, "# Allow remote access\n"); cupsFilePrintf(temp, "Port %d\n", server_port);