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

Log:
  MFC r197625: Fix using lp(1) without the new -t option after r195349.

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

Modified: stable/7/usr.sbin/lpr/lp/lp.sh
==============================================================================
--- stable/7/usr.sbin/lpr/lp/lp.sh      Tue Oct  6 21:46:03 2009        
(r197818)
+++ stable/7/usr.sbin/lpr/lp/lp.sh      Tue Oct  6 21:49:13 2009        
(r197819)
@@ -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}"} "$@"
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to