Subject: Re: General setting of printer

From: "Rufus D. Short" <[email-masked]>
Date: Fri, 2 Dec 1994 09:48:22 +0000 (GMT)

On Wed, 30 Nov 1994, Gildas PERROT wrote:

> Hi, 
> 
> As root, I would like to set the printer variable in the general
> configuration file (which is /usr/local/lib/pine.conf for me) to be
> 'lp' instead of 'lpr' (I am on SGI, System V). If I modify a variable
> in the pine.conf, the users see the changes if they haven't change
> themselves this variable in their .pinerc. However, the change of
> 'printer' in pine.conf is not seen by users. Any idea about this
> problem ?
> 

The file /usr/local/lib/pine.conf is only used as a template for new
users to pine.  The /usr/local/lib/pine.conf.fixeds provides a way
for sys-admin to set variables for all users.  Be aware though that any
variables set in the 'fixed' file cannot be changed by users.

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--      Rufus Short <8-)                email [email-masked]     --
--      TransEDA Limited                tel.           +44-1703-255118     --
--      Pilgrims Close                  fax.           +44-1703-270278     --
--      Chandlers Ford        NOTE: All opinions in this text are those of --
--      Hants SO53 4ST, UK          the author and not TransEDA.           -- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

---

From: David L Miller <[email-masked]>
Date: Fri, 9 Dec 1994 09:55:14 -0800

On Fri, 2 Dec 1994, Rufus D. Short wrote:

> Date: Fri, 2 DEC 1994 09:48:22 +0000 (GMT) 
> From: Rufus D. Short <[email-masked]>
> To: Gildas PERROT <[email-masked]>
> Newgroups: comp.mail.pine
> Subject: Re: General setting of printer 
> 

There is a bug in Pine 3.91 that causes certain variables in pine.conf and
pine.conf.fixed to be ignored.  A diff to correct this in pine.init.c is
attached. 

> variables set in the 'fixed' file cannot be changed by users.

Not quite correct.  The pine.conf and pine.conf.fixed files both set
variables for all users in each session.  The difference is that pine.conf
can be overridden by each user, but pine.conf.fixed cannot. 

|\ |  |\/|  David L. Miller    [email-masked]  (206) 685-6240
|/ |_ |  |  Software Engineer, Pine Development Team   (206) 685-4045 (FAX)
University of Washington, Networks & Distributed Computing, JE-20
4545 15th Ave NE, Seattle WA 98105, USA
*** pine3.91/src/pine/init.c	Mon Oct 10 14:34:29 1994
--- pine3.92/src/pine/init.c	Wed Oct 12 12:35:41 1994
***************
*** 2089,2100 ****
          }
  
          /*--- Var is not user controlled, leave it alone for back compat ---*/
!         if(!v->is_user){
!             if(which_vars == ParseLocal){           
                  pline->is_var = 0;
                  pline->line = cpystr(line);
                  pline++;
-             }
              continue;
          }
  
--- 2089,2098 ----
          }
  
          /*--- Var is not user controlled, leave it alone for back compat ---*/
!         if(!v->is_user && which_vars == ParseLocal){
  	    pline->is_var = 0;
  	    pline->line = cpystr(line);
  	    pline++;
  	    continue;
          }