delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/12/01/04:25:16

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AC4083860C3F
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=ssi-schaefer.com
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=Mario DOT Mattl AT ssi-schaefer DOT com
IronPort-SDR: IVaG/kFLZ9+UR+8ZXq2DU1FR5XkaSbvuHA868lnOtXvy3bpHUjm4ey9oKgcKviMC+BSHDig8Qf
U/ZP2tXjEPJyNjPXKrYW8Q1fzi7q/Sw+yQGHtk+syJeZPIFrvNeFqc8WR2A7xKMukqLH+gwEM3
8wBwMpNwm1+E9yUqew2piyNkZ6BCEF2GTB6C/mtpBCD/zKgjfPHPwPja8EIBF1JAS98BX397pu
M0mtLtVgkBHtHqHKiLF+suSSpJz5glvk7tACGXB00lPnbCqr5k5ipCgTdFl9j/gbIdpGUoRqQ8
7P4=
X-IronPort-AV: E=Sophos;i="5.78,384,1599516000"; d="scan'208";a="48700992"
X-IPAS-Result: =?us-ascii?q?A2F7BQBwCsZf/x0lHKxigQmEblZrhDKtWAsBAQEBAQEBA?=
=?us-ascii?q?QEJExAJAQIEAQEChGGBfQIlOBMCAwEBCwEBAQUBAQEBAQYDAQIChk4BC4NUg?=
=?us-ascii?q?QcBAQEBAQEBAQEBAQEBAQEBAQEBFgIIVE5JBA1XAQUdAiYCBDAVEQEEGxODD?=
=?us-ascii?q?IMKC6xZfzOJDoE8BoEOKoVZEjxCiHKBR4FkgTyHVYJfBJBbBYMZpHUHgnODH?=
=?us-ascii?q?YR1kxErgRqhApNqnDWEOCyBbYF7MxojgzpPFwINjliDOopYRGcCBgEJAQEDC?=
=?us-ascii?q?XQIjVgBgRABAQ?=
From: Mattl Mario <Mario DOT Mattl AT ssi-schaefer DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists
and is present in PATH
Thread-Topic: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink
exists and is present in PATH
Thread-Index: AdbHw5UT4p45JSazRFeyGtz7n+PDSA==
Date: Tue, 1 Dec 2020 09:24:25 +0000
Message-ID: <3160909720eb427892eb38221a611953@frims060.wamas.com>
Accept-Language: de-AT, en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [85.127.52.221]
MIME-Version: 1.0
X-Spam-Status: No, score=3.0 required=5.0 tests=BAYES_40, KAM_DMARC_STATUS,
RCVD_IN_BARRACUDACENTRAL, SPF_HELO_NONE,
SPF_PASS autolearn=no autolearn_force=no version=3.4.2
X-Spam-Level: ***
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0B19Ov40029518

Hello,

Since cygwin1.dll version 3.1.5, I observed the following behavior:
If a symbolic link is existing in the PATH environment, programs (external from Cygwin's system directory) using cygwin1.dll cannot be executed anymore.
Possibly, because the Cygwin-DLL isn't found anymore.

Steps to reproduce:

cd /
mkdir link_test
cp /usr/bin/sed.exe link_test
ln -s link_test test
export PATH=/test:/link_test:/usr/bin:/bin

/link_test/sed cannot be executed
$ ldd /link_test/sed
        ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffffd960000)
        KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x7ffffd140000)
        KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll (0x7ffffa8e0000)
        SYSFER.DLL => /cygdrive/c/WINDOWS/System32/SYSFER.DLL (0x550c0000)

-> no cygwin- DLLs found

If I delete the symbolic link
$ ll test
lrwxrwxrwx 1 mmattl Users 9 Dec  1 10:14 test -> link_test/
simply with
rm test

everything is working fine; sed can be executed
$ /link_test/sed
Usage: /link_test/sed [OPTION]... {script-only-if-no-other-script} [input-file]...
[...]
And

$ ldd /link_test/sed
        ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffffd960000)
        KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x7ffffd140000)
        KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll (0x7ffffa8e0000)
        SYSFER.DLL => /cygdrive/c/WINDOWS/System32/SYSFER.DLL (0x550c0000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
        cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3f7110000)
        cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3f7160000)

It would be great if you could give some advice to this issue.

Many thanks and best regards,
Mario


SSI Schäfer IT Solutions GmbH | Friesachstrasse 15 | 8114 Friesach | Austria
Registered Office: Friesach | Commercial Register: 49324 K | VAT no. ATU28654300
Commercial Court: Landesgericht für Zivilrechtssachen Graz
Unsere Hinweise zum Umgang mit personenbezogenen Daten finden Sie hier<https://www.ssi-schaefer.com/de-at/datenschutz-49548>.
You can find our information on the handling of personal data here<https://www.ssi-schaefer.com/en-at/privacy-13258>.
--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019