Author: archaic
Date: 2006-05-03 13:43:38 -0600 (Wed, 03 May 2006)
New Revision: 7584
Modified:
trunk/BOOK/chapter01/changelog.xml
trunk/BOOK/chapter06/udev.xml
trunk/BOOK/general.ent
Log:
Updated the bug.c code to avoid USB-related uevent leakage reports.
Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml 2006-05-03 02:37:49 UTC (rev 7583)
+++ trunk/BOOK/chapter01/changelog.xml 2006-05-03 19:43:38 UTC (rev 7584)
@@ -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>
Modified: trunk/BOOK/chapter06/udev.xml
===================================================================
--- trunk/BOOK/chapter06/udev.xml 2006-05-03 02:37:49 UTC (rev 7583)
+++ trunk/BOOK/chapter06/udev.xml 2006-05-03 19:43:38 UTC (rev 7584)
@@ -138,12 +138,22 @@
#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');
Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent 2006-05-03 02:37:49 UTC (rev 7583)
+++ trunk/BOOK/general.ent 2006-05-03 19:43:38 UTC (rev 7584)
@@ -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}]" -->
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page