[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: loop-AES: passing command line arguments to init [patch]
Jari Ruusu wrote:
> Martin Godisch wrote:
> > And init will get
> > argv[0] "linuxrc", but that's a cosmetic mistake, I don't know whether
> > changing argv[0] is portable.
>
> On my test box, kernel stubbornly passed argv[0] as "init" to linuxrc.
> And changing it is simple. Something like this:
>
> if(*argv) *argv = "init";
>
I just uploaded new patch here:
http://loop-aes.sourceforge.net/updates/loop-AES-v2.0d-20031230.diff.bz2
http://loop-aes.sourceforge.net/updates/loop-AES-v2.0d-20031230.diff.bz2.sign
It includes argv[0] fix plus dietlibc workaround for one parameter reboot()
--
Jari Ruusu 1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9 DB 1D EB E3 24 0E A9 DD
-
Linux-crypto: cryptography in and on the Linux system
Archive: http://mail.nl.linux.org/linux-crypto/