Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49748 - usb.agent write all ENV vars onto stdout. (Coldplugging)
Summary: usb.agent write all ENV vars onto stdout. (Coldplugging)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-02 12:39 UTC by Francesco Ferrara
Modified: 2004-09-20 15:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Correct an empty line in usb.usermap files (usb.agent.patch,269 bytes, patch)
2004-05-04 08:27 UTC, Francesco Ferrara
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Ferrara 2004-05-02 12:39:35 UTC
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
Comment 1 Francesco Ferrara 2004-05-02 12:54:28 UTC
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

:)
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-05-03 20:55:10 UTC
Can you put the patch in an attachment so I can apply it?
Comment 3 Francesco Ferrara 2004-05-04 02:03:58 UTC
What parameters do you want (for diff)? 
(AKA what are Gentoo .patch files generated?)
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-05-04 07:58:36 UTC
So that I can apply it with a 'patch -p1' would be best.

Comment 5 Francesco Ferrara 2004-05-04 08:27:36 UTC
Created attachment 30713 [details, diff]
Correct an empty line in usb.usermap files
Comment 6 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-09-20 15:52:06 UTC
Thanks, this is now fixed upstream and will show up in the next release (today or tomorrow.)