[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] MiNT libs



At 10:08 Uhr +0100 26.01.1999, Martin-Eric Racine wrote:

>Alternately, are there any utils that can replace a specific string
>within a binary (sort of like a disk editor) so I could just patch
>those lib files to replace "/var/adm/wtmp" with "/var/log/wtmp"?
>
>Many thanks to whoever can come up with the solution to this one. ;-)

Last time I had to do something like that I used sed, something like:

sed +/var/adm/wtmp/+/var/log/wtmp+

But you can use any editor that is capable of editing binary files, like
vim (Vi IMproved www.vim.org)

Axel

Adults get far more pleasure from adultery
than children do from infancy