Description of problem: When running the daemon() function from an initscript and using the "--user" option, daemon will run "/sbin/runuser" to execute. This command clears the environment by default unless the -m or -p arguments are given. This can create a problem because some initscripts set environment variables for their programs' use. Version-Release number of selected component (if applicable): FC5+ How reproducible: Always. Steps to Reproduce: 1. Export a variable in an initscript which sources /etc/init.d/functions 2. call a program using the "daemon --user BLAH program" syntax Actual results: The variable you exported will not be present in the program's environment. Expected results: That the variable would be available, yo, regardless of the fact that we're switching users.
*** This bug has been marked as a duplicate of 203010 ***