ports/90744: APSFILTER: character escape problem
Roman Kurakin
rik at FreeBSD.org
Wed Dec 21 13:50:03 UTC 2005
>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 at 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:
More information about the freebsd-ports-bugs
mailing list