[PATCH] [BZ #14462] Fix paths shown by ldconfig -r
Mike Frysinger
vapier@gentoo.org
Mon Sep 17 19:02:00 GMT 2012
On Thursday 13 September 2012 23:42:19 Allan McRae wrote:
> if (endp == opt_chroot)
> opt_chroot = NULL;
>
> + chroot_dir = opt_chroot;
seems like this is the only place where chroot_dir is initialized, but you
always uses it in parse_conf(). and even here, opt_chroot might get turned
into NULL (i think if you do `ldconfig -r /`).
how about after this opt_chroot processing, you add:
if (!chroot_dir)
chroot_dir = "";
then you don't need the NULL check in elf/cache.c, and you can keep opt_chroot
static in elf/ldconfig.c, and the parse_conf() code works too
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120917/fb098706/attachment.sig>
More information about the Libc-alpha
mailing list