usb.agent scan line by line all files *.usermap doing a set $line on it. but if you write a *.usermap with an empty line in it, usb.agent write all ENV data onto stdout (also in the boot process). I have resolved with a simple... --- usb.agent 2004-05-02 21:28:42.698807968 +0200 +++ usb.agent.old 2004-05-02 21:26:29.257094192 +0200 @@ -251,5 +251,4 @@ case "$line" in \#*) continue ;; - "") continue ;; esac Reproducible: Always Steps to Reproduce: 1. insert an empty line onto one of your *.usermap files 2. run /etc/hotplug/usb.rc start 3. look at the ENV variables onto stdout Expected Results: Nothing printed onto stdout
Naturally the patch is this: --- usb.agent.old 2004-05-02 21:26:29.000000000 +0200 +++ usb.agent 2004-05-02 21:28:42.000000000 +0200 @@ -251,4 +251,5 @@ case "$line" in \#*) continue ;; + "") continue ;; esac :)
Can you put the patch in an attachment so I can apply it?
What parameters do you want (for diff)? (AKA what are Gentoo .patch files generated?)
So that I can apply it with a 'patch -p1' would be best.
Created attachment 30713 [details, diff] Correct an empty line in usb.usermap files
Thanks, this is now fixed upstream and will show up in the next release (today or tomorrow.)