Re: Native symbolic link behavior is broken and makes backups using Cygwin command line tools impossible

2021-01-13 Thread Matt D. via Cygwin
On Tue, Jan 12, 2021 at 5:20 PM Andrey Repin wrote: > > Again, the properties are read BY SYSTEM at the moment the link is created. > In other words, Windows is unable to create a link to nonexistent > (unreachable) target (not directly, at least). This is false. Links can be created arbitrarily

Re: Native symbolic link behavior is broken and makes backups using Cygwin command line tools impossible

2021-01-12 Thread Andrey Repin
Greetings, Matt D.! Please no top posting in this list. > On Mon, Jan 4, 2021 at 10:46 AM Jeffrey Altman via Cygwin wrote: >> >> On 1/4/2021 10:27 AM, Matt D. via Cygwin wrote: >> > I am using symbolic links native to Windows. My CYGWIN environment >> > variable has been set to

Re: Native symbolic link behavior is broken and makes backups using Cygwin command line tools impossible

2021-01-12 Thread Matt D. via Cygwin
Operations like cp and rsync etc. should still work. The type of symbolic link to be created can be read from the file attributes of the one being copied. On Mon, Jan 4, 2021 at 10:46 AM Jeffrey Altman via Cygwin wrote: > > On 1/4/2021 10:27 AM, Matt D. via Cygwin (cygwin@cygwin.com) wrote: > >

Re: Native symbolic link behavior is broken and makes backups using Cygwin command line tools impossible

2021-01-04 Thread Achim Gratz
Matt D. via Cygwin writes: > The normal behavior for both Windows and Linux is to create the > symbolic link whether the target exists or not. That's not the case on Windows or rather it has restrictions that can trip you up. On Windows you must specify if the symbolic link points to a directory

Re: Native symbolic link behavior is broken and makes backups using Cygwin command line tools impossible

2021-01-04 Thread Eliot Moss
On 1/4/2021 10:27 AM, Matt D. via Cygwin wrote: > I think there is a misunderstanding with how to set up your > environment to reproduce my test cases. I did state in the subject > "native symbolic links" but I can see that this can be misinterpreted > and I should have clarified. > > I am using

Re: Native symbolic link behavior is broken and makes backups using Cygwin command line tools impossible

2021-01-04 Thread Jeffrey Altman via Cygwin
On 1/4/2021 10:27 AM, Matt D. via Cygwin (cygwin@cygwin.com) wrote: > I am using symbolic links native to Windows. My CYGWIN environment > variable has been set to "winsymlinks:nativestrict" and my account has > permission to make symbolic links. This is an issue specifically with > Cygwin; I have

Re: Native symbolic link behavior is broken and makes backups using Cygwin command line tools impossible

2021-01-04 Thread Matt D. via Cygwin
I think there is a misunderstanding with how to set up your environment to reproduce my test cases. I did state in the subject "native symbolic links" but I can see that this can be misinterpreted and I should have clarified. I am using symbolic links native to Windows. My CYGWIN environment

Re: Native symbolic link behavior is broken and makes backups using Cygwin command line tools impossible

2021-01-04 Thread Eliot Moss
On 1/4/2021 5:36 AM, Matt D. via Cygwin wrote: > Did you try any of my test cases? This can't and doesn't work for the > reasons I outlined in my previous message: > > $ cp -av folder_a/a folder_b/ > 'folder_a/a' -> 'folder_b/a' > cp: cannot create symbolic link 'folder_b/a': No such file or

Re: Native symbolic link behavior is broken and makes backups using Cygwin command line tools impossible

2021-01-04 Thread Matt D. via Cygwin
Did you try any of my test cases? This can't and doesn't work for the reasons I outlined in my previous message: $ cp -av folder_a/a folder_b/ 'folder_a/a' -> 'folder_b/a' cp: cannot create symbolic link 'folder_b/a': No such file or directory $ cp -dv folder_a/a folder_b/ 'folder_a/a' ->

Re: Native symbolic link behavior is broken and makes backups using Cygwin command line tools impossible

2021-01-02 Thread Brian Inglis
On 2021-01-02 21:16, Matt D. via Cygwin wrote: I have a folder with a lot of native Windows symbolic links. I want to copy this folder. I cannot rsync or cp this folder due to Cygwin being unable to create symbolic links without also wanting to verify the link target. This can be demonstrated:

Native symbolic link behavior is broken and makes backups using Cygwin command line tools impossible

2021-01-02 Thread Matt D. via Cygwin
I have a folder with a lot of native Windows symbolic links. I want to copy this folder. I cannot rsync or cp this folder due to Cygwin being unable to create symbolic links without also wanting to verify the link target. This can be demonstrated: $ ln -s a b ln: failed to create symbolic link