This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] [BZ #14462] Fix paths shown by ldconfig -r
- From: Allan McRae <allan at archlinux dot org>
- To: Andreas Jaeger <aj at suse dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 14 Sep 2012 18:52:50 +1000
- Subject: Re: [PATCH] [BZ #14462] Fix paths shown by ldconfig -r
- References: <5052A79B.5060004@archlinux.org> <14997148.99ZWx2FWVF@byrd>
On 14/09/12 18:39, Andreas Jaeger wrote:
> On Friday, September 14, 2012 13:42:19 Allan McRae wrote:
>> This fixes the potentially confusing paths shown by ldconfig when used
>> with the -r option.
>>
>> Before:
>>
>> $ ldconfig -r /tmp/ /foo
>> ldconfig: Warning: ignoring configuration file that cannot be opened:
>> /etc/ld.so.conf: No such file or directory
>> ldconfig: Can't create temporary cache file /tmp/etc/ld.so.cache~: No
>> such file
>> or directory
>>
>> $ sudo ldconfig -r /tmp/ /foo
>> ldconfig: Warning: ignoring configuration file that cannot be opened:
>> /etc/ld.so.conf: No such file or directory
>> ldconfig: Can't create temporary cache file /etc/ld.so.cache~: No such
>> file or
>> directory
>>
>>
>> After:
>>
>> $ ldconfig -r /tmp/ /foo
>> ldconfig: Warning: ignoring configuration file that cannot be opened:
>> /tmp/etc/ld.so.conf: No such file or directory
>> ldconfig: Can't create temporary cache file /tmp/etc/ld.so.cache~: No
>> such file or directory
>>
>> $ sudo ldconfig -r /tmp/ /foo
>> ldconfig: Warning: ignoring configuration file that cannot be opened:
>> /tmp/etc/ld.so.conf: No such file or directory
>> ldconfig: Can't create temporary cache file /tmp/etc/ld.so.cache~: No
>> such file or directory
>>
>
> What happens if I call ldconfig with ldconfig -r /tmp /foo without - so
> without a trailing slash? Would that display a path with one / missing?
>
That works fine. The trailing / from the path given to -r actually gets
stripped off. The / comes from the /etc part.
Allan