Date: Sat, 14 Feb 2004 04:05:25 +0100 From: Arne Schwabe <arne@rfc2549.org> To: Kimura Fuyuki <fuyuki@nigredo.org> Cc: jdp@polstra.com Subject: Re: dynamic linker problem Message-ID: <86oes2cqdm.fsf@kamino.rfc1149.org> In-Reply-To: <86isiaa03q.wl%fuyuki@nigredo.org> (Kimura Fuyuki's message of "Sat, 14 Feb 2004 11:03:37 %2B0900") References: <86n07oa7sa.wl%fuyuki@nigredo.org> <86isiaa03q.wl%fuyuki@nigredo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Kimura Fuyuki <fuyuki@nigredo.org> writes: > OK, I more clearly point out the problem; run the following test and > think that behavior is secure/modular/comfortable or not. > > BEGIN--cut here--cut here > #!/bin/sh > > cat <<'[EOF]' >crypt.c > /* Define this function since I want to do so! */ > char *crypt_md5(const char *pw, const char *salt) > { > return "imbogus"; > } > [EOF] > > cat <<'[EOF]' >dltest.c > #include <stdio.h> > #include <dlfcn.h> > > int main(void) > { > void *h; > char *(*crypt)(const char *, const char *); > > h = dlopen("/lib/libcrypt.so", 0); At least on my system /lib/libcrypt.so does not even exist, if I change it to /lib/libcrypt.so.2 it works. Arne
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86oes2cqdm.fsf>