On Tue, Jun 17, 2025 at 5:25 PM Aurélien Couderc
<aurelien.couderc2...@gmail.com> wrote:
>
> Cygwin creates <JUNCTIONS> instead of <SYMLINK> on NTFS, but cmd.exe
> cannot find the *.exe if they are linked as <JUNCTIONS>.
>
> Two test cases:
> $ bash -c $'rm -f id_vers15.exe ; cp /usr/bin/id.exe id_vers15.exe ;
> ln -sf id_vers15.exe myid.exe ; cmd /C \'.\\\\\myid.exe\''
> $ bash -c $'rm -f id_vers15.exe ; cp /usr/bin/id.exe id_vers15.exe ;
> ln -sf id_vers15.exe myid.exe ; powershell -Command
> \'.\\\\\myid.exe\''
>
> In both test cases the copied and linked myid.exe cannot be executed.
>
> Is there a way to fix this?

Why does Cygwin not use SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE?

Aurélien
-- 
Aurélien Couderc <aurelien.couderc2...@gmail.com>
Big Data/Data mining expert, chess enthusiast

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to