- From: Laurent Desarmes <
>
- To: Maciej Pasternacki <
>
- Cc: Joseph Holsten <
>,
- Subject: [chef-dev] Re: Re: CHEF-2398 : adding a cwd attr to the link resource
- Date: Sun, 15 Apr 2012 13:38:49 +0200
Maciej Pasternacki
<
>
writes:
>
On Apr 15, 2012, at 12:50 , Laurent Desarmes wrote:
>
>
>> Could you explain why this is useful? I haven't used them in ages, so I
>
>> can't
>
>> remember what they're good for (besides surprising me).
>
>>
>
>> In particular, I have no idea what the example in the ticket is supposed
>
>> to
>
>> do.
>
>
>
> Hi
>
>
>
> the example in the ticket is supposed to maintain a symbolic link in
>
> /boot called "linux" with a relative reference to "linux-3.0.0"
>
>
>
>
>
> to make it simple, can you see the difference between:
>
> 1) ln -s /boot/linux-3.0.0 /boot/linux
>
> vs
>
> 2) cd /boot; ln -s linux-3.0.0 linux
>
>
You don't need to chdir(), 1) is equivalent to in -s linux-3.0.0 /boot/linux
2) you meant.
>
Relative symlinks are relative to the directory where the symlink is
>
placed, not getcwd.
yep that's correct. (don't know about win32)
I'll have a look this evening, thanks.
(my patch doesn't fix the issue at all anyway...)
--
Laurent
Archive powered by MHonArc 2.6.16.