[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ln can't backup directories
From: |
Bert Wesarg |
Subject: |
Re: ln can't backup directories |
Date: |
Fri, 11 Sep 2009 15:42:31 +0200 |
On Mon, Sep 7, 2009 at 18:25, Bert Wesarg <address@hidden> wrote:
> Hi all,
>
> I'm failing in creating a symlink where the destination is a directory
> and do a backup of this directory. This is what I tried:
>
> $ mkdir a
> $ ln -s --no-target-directory --backup=numbered b a
> ln: `a': cannot overwrite directory
>
> Looking at the code I can seen the reason, the backup rename() is
> never executed, because the check whether the target is a directory
> comes first.
>
> Any hints whether this is a bug of ln or how I can create the link
> while preserving the destination as an backup are more than welcomed.
>
> Thanks.
> Bert
>
Thanks to all for the release. But can someone please have a look at my problem?
Bert
- ln can't backup directories, Bert Wesarg, 2009/09/07
- Re: ln can't backup directories,
Bert Wesarg <=
- Re: ln can't backup directories, Bert Wesarg, 2009/09/13
- Re: ln can't backup directories, Jim Meyering, 2009/09/13
- Re: ln can't backup directories, Bert Wesarg, 2009/09/13
- Re: ln can't backup directories, Jim Meyering, 2009/09/15