This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [BZ #14462] Fix paths shown by ldconfig -r


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]