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
This commit is contained in:
Archaic 2006-05-03 19:43:38 +00:00
parent 09f1daf453
commit 8abeb3bc1a
3 changed files with 23 additions and 3 deletions

View File

@ -36,6 +36,16 @@
</listitem>
-->
<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>

View File

@ -138,12 +138,22 @@ ln -sv /proc/kcore /lib/udev/devices/core</userinput></screen>
#include &lt;argz.h&gt;
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 &amp;&amp; strstr(envar, "usb"))
return 0;
envar = getenv("DEVPATH");
if (envar &amp;&amp; strstr(envar, "usb"))
return 0;
setenv("_SEPARATOR", "-------------------------------", 1);
argz_create(environ, &amp;envz, &amp;len);
argz_stringify(envz, len, '\n');

View File

@ -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}]" -->