>  cp <source> <target>
>
>With the -o flag we get
>
>  mv -f <target> <OLDtarget>
>  cp <OLDtarget> <target>
>  ...
>  cp <source> <target>
>
>So it preserves the original, but leaves a window when there is no
><target>, and another window where there is a copy of the old version
>(which puts us back to square one with libc, because the second cp will
>overwrite the libc it is using).


Use "ln"; 

        cp /path/to/new/libc.so.1 /lib/libc.so.1.new
        cd /lib
        ln libc.so.1 libc.so.1.old
        ln -f libc.so.1.new libc.so.1

Also, don't use LD_PRELOAD if you want to load a different libc; use
LD_LIBRARY_PATH.

Casper

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to