Douglas Laing - 2006-09-02

Logged In: YES
user_id=343119

The output of ldd keeps changing, with Fedora Core 4 I get:

# ldd /usr/bin/getent
linux-gate.so.1 => (0x00111000)
libc.so.6 => /lib/libc.so.6 (0x00ab9000)
/lib/ld-linux.so.2 (0x00a9b000)

(Failure of getent to find it's shared libraries causes jail
iteself to fail when getent is issued after chrooting.)

I have patched lib/atch/generic/funstions as follows:
# diff lib/arch/generic/functions my/functions
682,685c682,686
< if ($line =~ /(.+)=>(.+)/) {
< local $b = zip_spaces($2);
< local @tmp = split(/ /,$b);
< $b = $tmp[1];
---
>
> if ($line =~ /(.+) \(0x.+/) { # check for (0x...
> local $b = $1; # throw away '(0x.+$'
> $b =~ s/.+=>(.+)/$1/; # throw away '^.+=>'
> $b =~ s/\s+//g; # throw away spaces

Douglas Laing, Johannesburg