[cups.bugs] [HIGH] STR #3664: cupsd.conf directives SetEnv and PassEnv have no effect

Christer Bernérus bernerus at chalmers.se
Wed Sep 8 06:30:32 PDT 2010


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

The directives SetEnv and PassEnv in cupsd.conf have no effect. 
The directives are parsed and calls are made to cupsdSetEnv() which stores
the settings in the common_env array [scheduler/env.c] , when reading the
config file [scheduler/conf.c]. 
However all these calls are later undone by a call to cupsdInitEnv() which
removes the contents of common_env array and fills it with the standard env
variables for cupsd.

All this happens within the cupsdReadConfiguration() function in
scheduler/conf.c.

As far as I can see, it did not harm to move the call of cupsdInitEnv() to
right before the opening of the configuration file at about line 700 in
conf.c.

I was looking at SVN version 9289 but the code seems to have had this
error since at least 2007...

Link: http://www.cups.org/str.php?L3664
Version: 1.4-current





More information about the cups-devel mailing list