Hi,

Sorry to bring the topic again. Someone pointed out that udevd should be 
passing the environment variables it gets on startup to its spawned 
child processes, thus letting the use actually decide what should be and 
not be in the environment.

I would like to point out that while revieving the udevd code I found 
out that udevd actively (by means of a call to clearenv) clears the 
environment variables of all forked processes, which of course includes 
all programs called via the "RUN" directive in the rules files.

As I mentioned earlier, I solved the problem with a generic rule in a 
file named to be included before all others:

ACTION=="*", ENV{PATH}="/sbin:/usr/sbin:/bin:/usr/bin"

However, I still don't know why my FC6 setup does not include such a 
rule but still works fine (yes, the Red Hat patches don't remove the 
clearenv).

Regards.

Nacho.
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to