coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ln -s A B fails if symlink B exists and its value is too long


From: Pádraig Brady
Subject: Re: ln -s A B fails if symlink B exists and its value is too long
Date: Fri, 17 Jan 2014 04:03:41 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 12/27/2013 12:35 PM, Pádraig Brady wrote:
> On 12/27/2013 12:31 PM, Pádraig Brady wrote:
>> This is a bug and happens when ln tries to determine of the last arg is a 
>> directory.
>> It does a stat(2) which gives this error. ENOENT is specifically ignored, 
>> but it
>> seems like others should be too. You can see the source of the error with:
>>
>> $ stat -L len256
>> stat: cannot stat `len256': File name too long
>>
>> When resetting symlinks to point to somewhere else I always use -nsf
>> and that does avoid the issue here too.
> 
> Note the 255 limit probably comes from:
> 
> $ getconf NAME_MAX .
> 255

I'll push the attached soon to fix this.

thanks,
Pádraig.

Attachment: ln-sf-replace-all.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]