Author: matthew
Date: 2005-09-02 15:48:07 -0600 (Fri, 02 Sep 2005)
New Revision: 6799

Modified:
   branches/gcc4/BOOK/chapter01/changelog.xml
   branches/gcc4/BOOK/chapter05/adjusting.xml
   branches/gcc4/BOOK/general.ent
Log:
Properly avoid the race condition in 'find' when removing GCC's fixed headers

Modified: branches/gcc4/BOOK/chapter01/changelog.xml
===================================================================
--- branches/gcc4/BOOK/chapter01/changelog.xml  2005-09-02 19:29:49 UTC (rev 
6798)
+++ branches/gcc4/BOOK/chapter01/changelog.xml  2005-09-02 21:48:07 UTC (rev 
6799)
@@ -119,6 +119,10 @@
 </itemizedlist>
 </listitem>
 
+<listitem><para>September 2, 2005 [matt]: Avoid the potential race condition
+when invoking <command>find</command> to remove GCC's fixed headers.</para>
+</listitem>
+
 <listitem><para>August 30th, 2005 [matt]: Work around a segfault in cfdisk by
 compiling with -O instead of the default -O2 optimization setting (fixes bug
 1604).</para></listitem>

Modified: branches/gcc4/BOOK/chapter05/adjusting.xml
===================================================================
--- branches/gcc4/BOOK/chapter05/adjusting.xml  2005-09-02 19:29:49 UTC (rev 
6798)
+++ branches/gcc4/BOOK/chapter05/adjusting.xml  2005-09-02 21:48:07 UTC (rev 
6799)
@@ -68,7 +68,7 @@
 
 <!-- && used to ease copy and pasting -->
 <screen><userinput>GCC_INCLUDEDIR=`dirname $(gcc 
-print-libgcc-file-name)`/include &amp;&amp;
-find ${GCC_INCLUDEDIR}/* -xtype d -exec rm -rf \{} \;
+find ${GCC_INCLUDEDIR}/* -maxdepth 0 -xtype d -exec rm -rf '{}' \; &amp;&amp;
 rm -f `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` &amp;&amp;
 unset GCC_INCLUDEDIR</userinput></screen>
 

Modified: branches/gcc4/BOOK/general.ent
===================================================================
--- branches/gcc4/BOOK/general.ent      2005-09-02 19:29:49 UTC (rev 6798)
+++ branches/gcc4/BOOK/general.ent      2005-09-02 21:48:07 UTC (rev 6799)
@@ -1,5 +1,5 @@
-<!ENTITY version "GCC4-20050831">
-<!ENTITY releasedate "August 31, 2005">
+<!ENTITY version "GCC4-20050902">
+<!ENTITY releasedate "September 2, 2005">
 <!ENTITY milestone "6.2">
 <!ENTITY generic-version "gcc4"> <!-- Use "svn", "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

Reply via email to