[blfs-dev] Fixes to nettle and gnutls

Fernando de Oliveira famobr at yahoo.com.br
Fri May 1 04:36:07 PDT 2015


On 01-05-2015 08:08, Pierre Labastie wrote:
> Le 01/05/2015 12:26, Fernando de Oliveira a écrit :
>> Thank you very much for the post.
>>
>> On 30-04-2015 13:58, Ken Moffat wrote:
>>> On Thu, Apr 30, 2015 at 07:32:32AM -0300, Fernando de Oliveira wrote:
>>>> Re: r15900 and r15901.

>>>>                 chmod   -v   755 /usr/lib/lib{hogweed,nettle}.so &&

>>> But does that chmod do the same thing ?  A
>>> symlink is normally 777, what we need is to change its target (from
>>> what I recall, the targets get installed as 644).
>>
>> Yes. And I think you agre that we should every time check if versions
>> could be removed from the instructions.

s/agre/agree/

>> Simple test of concept:
>>
>> $ touch test.so.123 && ln -sv test.so.123 test.so
>> “test.so” -> “test.so.123”
>> $ stat -c '%a %A %n' test.so*
>> 777 lrwxrwxrwx test.so
>> 664 -rw-rw-r-- test.so.123
>> $ LANG=C chmod -c 0755 test.so
>> mode of 'test.so' changed from 0664 (rw-rw-r--) to 0755 (rwxr-xr-x)
>> $ stat -c '%a %A %n' test.so*
>> 777 lrwxrwxrwx test.so
>> 755 -rwxr-xr-x test.so.123
> 
> Also, from "man chmod":
> chmod never changes the permissions of symbolic links; the chmod system
> call cannot change their permissions.  This is not a problem since the per‐
> missions of symbolic links are never used.  However, for each symbolic link
> listed on the command line, chmod changes the permissions of the pointed-to
> file.
> 
> Pierre, BLFS-inactive at the moment. Hope to be back soon
> 

Thanks, Pierre. Good hearing from you!

-- 
[]s,
Fernando


More information about the blfs-dev mailing list