Le 11/08/2017 à 10:26, David Macek a écrit :
On 9. 8. 2017 16:29, Vincent Belaïche wrote:
Le 09/08/2017 à 15:38, David Macek a écrit :
On 9. 8. 2017 15:34, Vincent Belaïche wrote:
The symlink emulation could keep track of all elements already
copied once, and every time it is inspecting a new element to be
copied, it would cancel the copy if the element has already been
copied. This would break this infinite loop stuff (otherwise it
breaks only when the path length exceed the maximum allowed).
That doesn't help much IMO. The copy (the fake symlink) is not
complete, so it's still a failure.
I think it would be useful however. If you do :
mkdir gnats; cd gnats; ln -s ../* .; cd ..; zip -r gnats.zip gnats
then the gnats.zip compressed archive would be the same if
pseudo-symlinks are created in the way which I propose as if real
symlinks were created. Therefore, if you keep pseud-symlinks as they
are, the outcome is farther away from what you get with real symlink
than which the fix which I propose.
I'm not able to confirm. When ran the commands on Linux, I ended up
with a ZIP archive with lots of nested gnats directories. If we were
to break recursions on MSYS2 as you propose, the archive would have
just 1 level of nesting.
I must admit that my statement was probably incorrect. After checking
it, the example I had in mind actually list explicitly all the files to
be zipped rather than just give the directory name.
Vincent.
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel
antivirus Avast.
https://www.avast.com/antivirus
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users