diff options
author | Archaic <archaic@linuxfromscratch.org> | 2006-05-03 19:43:38 +0000 |
---|---|---|
committer | Archaic <archaic@linuxfromscratch.org> | 2006-05-03 19:43:38 +0000 |
commit | 8abeb3bc1ac03eb633871b379364b01ca9b4a813 (patch) | |
tree | bd1cdc4515a2bdacbc2e84bfb68e9fa5eb53564d | |
parent | 09f1daf45389f406a5225fa829e896d87e3a140b (diff) |
Updated the bug.c code to avoid USB-related uevent leakage reports.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7584 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | chapter01/changelog.xml | 10 | ||||
-rw-r--r-- | chapter06/udev.xml | 12 | ||||
-rw-r--r-- | general.ent | 4 |
3 files changed, 23 insertions, 3 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index bf1f409bb..0b911f825 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -37,6 +37,16 @@ --> <listitem> + <para>May 3, 2006</para> + <itemizedlist> + <listitem> + <para>[archaic] - Updated the bug.c code to avoid USB-related uevent + leakage reports.</para> + </listitem> + </itemizedlist> + </listitem> + + <listitem> <para>May 2, 2006</para> <itemizedlist> <listitem> diff --git a/chapter06/udev.xml b/chapter06/udev.xml index 94178b8a2..4dfa9e867 100644 --- a/chapter06/udev.xml +++ b/chapter06/udev.xml @@ -138,12 +138,22 @@ ln -sv /proc/kcore /lib/udev/devices/core</userinput></screen> #include <argz.h> int main(int argc, char * argv[]) { + char * envar; char * envz; size_t len; int bug; bug = open("/dev/bug", O_WRONLY | O_APPEND); if (bug == -1) - return 0; + return 0; + + /* Ignore everything USB-related to avoid spamming the list */ + envar = getenv("PHYSDEVPATH"); + if (envar && strstr(envar, "usb")) + return 0; + envar = getenv("DEVPATH"); + if (envar && strstr(envar, "usb")) + return 0; + setenv("_SEPARATOR", "-------------------------------", 1); argz_create(environ, &envz, &len); argz_stringify(envz, len, '\n'); diff --git a/general.ent b/general.ent index b9ec1e630..2c7db8dac 100644 --- a/general.ent +++ b/general.ent @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<!ENTITY version "SVN-20060502"> -<!ENTITY releasedate "May 2, 2006"> +<!ENTITY version "SVN-20060503"> +<!ENTITY releasedate "May 3, 2006"> <!ENTITY milestone "6.2"> <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" --> |