svn commit: r197815 - in stable/8/usr.sbin/lpr: . lp

Jilles Tjoelker jilles at FreeBSD.org
Tue Oct 6 21:23:51 UTC 2009


Author: jilles
Date: Tue Oct  6 21:23:49 2009
New Revision: 197815
URL: http://svn.freebsd.org/changeset/base/197815

Log:
  MFC r197625: Fix using lp(1) without the new -t option after r194171.
  
  Approved by:	re (kib)

Modified:
  stable/8/usr.sbin/lpr/   (props changed)
  stable/8/usr.sbin/lpr/lp/lp.sh

Modified: stable/8/usr.sbin/lpr/lp/lp.sh
==============================================================================
--- stable/8/usr.sbin/lpr/lp/lp.sh	Tue Oct  6 20:35:41 2009	(r197814)
+++ stable/8/usr.sbin/lpr/lp/lp.sh	Tue Oct  6 21:23:49 2009	(r197815)
@@ -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}"} "$@"


More information about the svn-src-all mailing list