Hello.

My friend Arthur Demchenkov says he found a bug in nALFS-1.2.5 that causes the /etc/ld.so.conf file to be corrupted under certain conditions.

Here's the original message that Arthur sent to me:

8<----------------------------------------
There's a bug in nALFS-1.2.5
It's located in "search and replace" subroutine.
I found that when I reinstalled Xorg my ld.so.conf file was corrupted...
You can check if the bug appear in your nALFS version.
1) Place the example ld.so.conf file in your /etc directory
2) Run blfs-profile
3) Chapter 25 -> xorg 6.8.2 -> Installing -> Search and replace and Dump text (not really necessary)
4) As you can see ld.so.conf is corrupted, I hope you made backup ;-)

The bug will be reproduced also when making replacing in the end of any file. So there may be a need in checking if your profiles corrupt some user packages.

Best regardz.
------------------------------------------->8

And here's the example ld.so.conf file mentioned by Arthur:

8<-------------------------------------------
# Begin /etc/ld.so.conf

/usr/local/lib
/opt/lib

# End /etc/ld.so.conf
/usr/X11R6/lib
---------------------------------------->8

And the patch for the nALFS-1.2.5 sources:

8<-------------------------------------------------
diff -Naur nALFS-1.2.5/src/handlers/search_replace.c nALFS-1.2.5-1/src/handlers/search_replace.c --- nALFS-1.2.5/src/handlers/search_replace.c 2003-11-06 19:01:13.000000000 +0200 +++ nALFS-1.2.5-1/src/handlers/search_replace.c 2005-12-28 21:34:43.000000000 +0200
@@ -153,6 +153,7 @@

    xfree(buf);

+   ftruncate(fdw, ftell(fpw));
    fclose(fpw);
    fclose(fp);
---------------------------------------------------->8


Regards.


*david
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to