From pali.gabor@googlemail.com  Mon May  5 17:51:37 2008
Return-Path: <pali.gabor@googlemail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 908CC10656A8
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 May 2008 17:51:37 +0000 (UTC)
	(envelope-from pali.gabor@googlemail.com)
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191])
	by mx1.freebsd.org (Postfix) with ESMTP id 1B1C28FC28
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 May 2008 17:51:36 +0000 (UTC)
	(envelope-from pali.gabor@googlemail.com)
Received: by nf-out-0910.google.com with SMTP id h3so1318041nfh.33
        for <FreeBSD-gnats-submit@freebsd.org>; Mon, 05 May 2008 10:51:35 -0700 (PDT)
Received: by 10.210.67.11 with SMTP id p11mr5883888eba.186.1210009895802;
        Mon, 05 May 2008 10:51:35 -0700 (PDT)
Received: from pgj@FreeBSD.org ( [80.98.116.90])
        by mx.google.com with ESMTPS id y6sm29411296mug.15.2008.05.05.10.51.33
        (version=TLSv1/SSLv3 cipher=OTHER);
        Mon, 05 May 2008 10:51:34 -0700 (PDT)
Received: by pgj@FreeBSD.org (sSMTP sendmail emulation); Mon,  5 May 2008 19:51:32 +0200
Message-Id: <481f4926.06e2660a.0e45.ffff975d@mx.google.com>
Date: Mon,  5 May 2008 19:51:32 +0200
From: "Gabor PALI" <pgj@FreeBSD.org>
Sender: =?UTF-8?B?UMOBTEkgR8OhYm9yIErDoW5vcw==?= <pali.gabor@googlemail.com>
Reply-To: Gabor PALI <pgj@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] Fix lpr(1) Error Messages in Handbook Chapter 9
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         123421
>Category:       docs
>Synopsis:       [patch] Fix lpr(1) Error Messages in Handbook Chapter 9
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gabor
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 05 18:00:01 UTC 2008
>Closed-Date:    Wed May 07 15:12:05 UTC 2008
>Last-Modified:  Wed May 07 15:12:05 UTC 2008
>Originator:     Gabor PALI
>Release:        FreeBSD 6.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD disznohal 6.3-STABLE FreeBSD 6.3-STABLE #4: Fri Apr 4 23:29:43 CEST 2008 dezzy@disznohal:/usr/obj/usr/src/sys/GENERIC_ i386

>Description:
	I found a small inconsistency in the use markups of lpr(1)
	error messages in the FreeBSD Handbook, Chapter 9 (``Printing'').
	It is marked up as <errorname> and then marked up as a
	<screen> message. I think this should be settled and I created
	two different patches to choose from.

>How-To-Repeat:

>Fix:

	Solution #1: Replace <errorname> with <screen> (the preceding
	paragraph is adjusted).


--- printing.patch.3.diff begins here ---
Index: chapter.sgml
===================================================================
RCS file: /doc/en_US.ISO8859-1/books/handbook/printing/chapter.sgml,v
retrieving revision 1.113
diff -u -r1.113 chapter.sgml
--- chapter.sgml	29 Apr 2008 19:11:39 -0000	1.113
+++ chapter.sgml	5 May 2008 04:08:30 -0000
@@ -3263,12 +3263,11 @@
           to have access to a printer in a certain group, and then name that
           group in the <literal>rg</literal> capability.</para>
             
-        <para>Users outside the group (including <username>root</username>)
-	  will be greeted with
+        <para>If users outside the group (including <username>root</username>)
+	try to print to the controlled printer then they will be greeted with the
+	following message:</para>
           
-          <errorname>lpr: Not a member of the restricted group</errorname>
-          
-          if they try to print to the controlled printer.</para>
+        <screen>lpr: Not a member of the restricted group</screen>
 
         <para>As with the <literal>sc</literal> (suppress multiple copies)
           capability, you need to specify <literal>rg</literal> on remote
--- printing.patch.3.diff ends here ---

	Solution #2: Replace <screen> with <errorname>.


--- printing.patch.4.diff begins here ---
Index: chapter.sgml
===================================================================
RCS file: /doc/en_US.ISO8859-1/books/handbook/printing/chapter.sgml,v
retrieving revision 1.113
diff -u -r1.113 chapter.sgml
--- chapter.sgml	29 Apr 2008 19:11:39 -0000	1.113
+++ chapter.sgml	5 May 2008 04:14:39 -0000
@@ -3185,11 +3185,11 @@
         <para>If you feel multiple copies cause unnecessary wear and tear on
           your printers, you can disable the <option>-#</option> option to
             &man.lpr.1; by adding the <literal>sc</literal> capability to the
-          <filename>/etc/printcap</filename> file.  When users submit jobs
-          with the <option>-#</option> option, they will see:</para>
+          <filename>/etc/printcap</filename> file.  Users will see an
               
-        <screen>lpr: multiple copies are not allowed</screen>
+          <errorname>lpr: multiple copies are not allowed</errorname>
 
+          if they submit jobs with the <option>-#</option> option.</para>
 
         <para>Note that if you have set up access to a printer remotely (see
           section <link linkend="printing-advanced-network-rm">Printers
--- printing.patch.4.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->gabor 
Responsible-Changed-By: gabor 
Responsible-Changed-When: Mon May 5 22:47:14 UTC 2008 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123421 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/123421: commit references a PR
Date: Wed,  7 May 2008 14:21:37 +0000 (UTC)

 gabor       2008-05-07 14:21:30 UTC
 
   FreeBSD doc repository
 
   Modified files:
     en_US.ISO8859-1/books/handbook/printing chapter.sgml 
   Log:
   - Cite the displayed error message in screen element
   
   PR:             docs/123421
   Submitted by:   pgj
   
   Revision  Changes    Path
   1.114     +4 -5      doc/en_US.ISO8859-1/books/handbook/printing/chapter.sgml
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: gabor 
State-Changed-When: Wed May 7 15:11:26 UTC 2008 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123421 
>Unformatted:
