From 7bc05ed877a48ed66f9f3a20a39945fc03e4982e Mon Sep 17 00:00:00 2001 From: jilles Date: Tue, 6 Oct 2009 21:23:49 +0000 Subject: [PATCH] MFC r197625: Fix using lp(1) without the new -t option after r194171. Approved by: re (kib) git-svn-id: svn://svn.freebsd.org/base/stable/8@197815 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.sbin/lpr/lp/lp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/lpr/lp/lp.sh b/usr.sbin/lpr/lp/lp.sh index 03ad887b5..dbec0531d 100644 --- a/usr.sbin/lpr/lp/lp.sh +++ b/usr.sbin/lpr/lp/lp.sh @@ -70,7 +70,7 @@ do s) # (silent option) : ;; t) # title for banner page - title="-J${OPTARG}";; + title="${OPTARG}";; *) # (error msg printed by getopts) exit 2;; esac @@ -78,4 +78,4 @@ done shift $(($OPTIND - 1)) -exec /usr/bin/lpr "-P${dest}" ${symlink} ${ncopies} ${mailafter} "${title}" "$@" +exec /usr/bin/lpr "-P${dest}" ${symlink} ${ncopies} ${mailafter} ${title:+-J"${title}"} "$@" -- 2.45.0