Date: Wed, 21 Dec 2005 13:43:58 GMT From: Roman Kurakin <rik@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/90744: APSFILTER: character escape problem Message-ID: <200512211343.jBLDhwH0095389@www.freebsd.org> Resent-Message-ID: <200512211350.jBLDo2K2000338@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 90744 >Category: ports >Synopsis: APSFILTER: character escape problem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 21 13:50:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Roman Kurakin >Release: 6.0-STABLE >Organization: FreeBSD/RRC KI >Environment: FreeBSD rik.grid.kiae.ru 6.0-STABLE FreeBSD 6.0-STABLE #0: Tue Dec 6 14:59:28 MSK 2005 root@rik.grid.kiae.ru:/usr/obj/usr/src/sys/RIK i386 >Description: Problems with space character in printer name (via samba). If you enter <aaa bbb> as a printer name test will fail, but lpd will work just fine, but you should guess that. If you enter <"aaa bbb"> test from setup will work, but lpd(apsfilter) would be unable to contact the printer. >How-To-Repeat: Try to setup printing via samba with printer name with spaces. >Fix: just put "'" around server name and printer name in SETUP as it done in apsfilter itself. patch-SETUP: --- SETUP.in.orig Fri Nov 22 21:32:54 2002 +++ SETUP.in Wed Dec 21 16:28:53 2005 @@ -1261,7 +1261,7 @@ SMB_LOGIN="" fi PRINT_TESTP_CMD="smbclient < '$TESTOUT' \ - //${SMB_SERVER}/${SMB_PRINTER} ${SMB_IP:+-I $SMB_IP} \ + '//${SMB_SERVER}/${SMB_PRINTER}' ${SMB_IP:+-I $SMB_IP} \ ${SMB_LOGIN} ${SMB_WORKGROUP:+-W} ${SMB_WORKGROUP} \ -b 1400 -N -c 'print -'" elif [ "$INTERFACE" = netware ]; then >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512211343.jBLDhwH0095389>