diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2005-09-02 21:48:07 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2005-09-02 21:48:07 +0000 |
commit | b9c59f48cea3a177ac6f02ac806c465c9160fb36 (patch) | |
tree | c688be70e0d4260ef72c27920062fea70c3c0744 | |
parent | e5d278c33dc7a28725fc79a6164973f1daf8f444 (diff) |
Properly avoid the race condition in 'find' when removing GCC's fixed headers
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/gcc4/BOOK@6799 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | chapter01/changelog.xml | 4 | ||||
-rw-r--r-- | chapter05/adjusting.xml | 2 | ||||
-rw-r--r-- | general.ent | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 3dd63ffb1..366e228eb 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -119,6 +119,10 @@ First a summary, then a detailed log.</para> </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> diff --git a/chapter05/adjusting.xml b/chapter05/adjusting.xml index 1d0cc6603..1991bd36d 100644 --- a/chapter05/adjusting.xml +++ b/chapter05/adjusting.xml @@ -68,7 +68,7 @@ This is explained in more detail later in this chapter. Run the following comman <!-- && used to ease copy and pasting --> <screen><userinput>GCC_INCLUDEDIR=`dirname $(gcc -print-libgcc-file-name)`/include && -find ${GCC_INCLUDEDIR}/* -xtype d -exec rm -rf \{} \; +find ${GCC_INCLUDEDIR}/* -maxdepth 0 -xtype d -exec rm -rf '{}' \; && rm -f `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` && unset GCC_INCLUDEDIR</userinput></screen> diff --git a/general.ent b/general.ent index d4272de0f..9d1712771 100644 --- a/general.ent +++ b/general.ent @@ -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}]" --> |