#! /bin/sh -e ## fix-for-iprint.dpatch by Albrecht Gebhardt ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Alloow local connections via /var/run/cups/cups.sock. ## DP: This is needed by Novells iprint client. [ "`lsb_release -is 2>/dev/null`" = "Ubuntu" ] || { echo -n '(ignored)' >&2; exit 0; } . /usr/share/dpatch/dpatch-run @DPATCH@ --- ./scheduler/client.c.ag 2009-07-15 01:02:05.000000000 +0200 +++ ./scheduler/client.c 2009-11-16 13:47:15.000000000 +0100 @@ -4895,6 +4895,8 @@ !strncasecmp(host, "localhost:", 10) || !strcasecmp(host, "localhost.") || !strncasecmp(host, "localhost.:", 11) || + !strcasecmp(host, "/var/run/cups/cups.sock") || + !strncasecmp(host, "/var/run/cups/cups.sock", 23) || #ifdef __linux !strcasecmp(host, "localhost.localdomain") || !strncasecmp(host, "localhost.localdomain:", 22) ||