Justin R. Knierim wrote:
* Initramfs bug causing the LiveCD to hang before starting init is
now fixed (?)
This problem should be fixed. Jeremy corrected the init.c, we built
another LiveCD with it, and one person who reported the error tried it
and reported it now worked. We can still use some testing but so far
Jeremy and myself can't reproduce the error.
Testing means practically nothing when one wants to say that there is no
bug. Rigorous proof is needed, otherwise one can say "that's masked by
accident, not really fixed". Thus, I am not convinced.
The message that Jeremy cited as the description of the problem
(http://archives.linuxfromscratch.org/mail-archives/livecd/2006-January/002920.html)
contains several wrong statements, e.g. "the first element of the array
should be a string that refers to the program being called". Isn't
exactly the opposite happening when one types the following in bash?
exec -a /something/completely/bogus /bin/bash --noprofile --norc
As for "argv being read-only": the following compiles without warnings
and works (calls bash with argv[0] set to bogus value):
#include <stdio.h>
#include <unistd.h>
int main(int argc, char * argv[], char * envp[])
{
argv[0] = "/something/completely/bogus";
execve("/bin/bash", argv, envp);
puts("This shouldn't happen\n");
return 0;
}
(try running ./a.out --help to see the effect)
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page