X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D2383844061 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1620804008; bh=wtrrbIJI8+suhIK+2H89jfb+r1F3q/mCJT4n1TFLl40=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=YClsCbOCl4N3XS1thp7TyccsgUrjGjhta0wsVWzxEAgbR0nBKVrGxIi8YTh6RHoe6 56f/e5fJMG6kEPEQYv4RDf426LfUOOTeTtAeFV7p12AqRolkKCK68bJcHs2wjROb3a VAONV2TbTP4zs7jy/PX7d813yCJK/M1lySTGCLGM= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9191B3857810 Date: Wed, 12 May 2021 10:10:26 +0300 X-Mailer: The Bat! (v6.8.8) Home X-Priority: 3 (Normal) Message-ID: <1515122016.20210512101026@yandex.ru> To: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>, cygwin AT cygwin DOT com Subject: Re: realpath issue with native[strict] symlinks In-Reply-To: <YJWvMVkkiqy4rmBc@calimero.vinschen.de> References: <CAGHpTBLp9tVES8=ggRkNk3HZLr-QT7n79ewKadTkWXyshBfcAw AT mail DOT gmail DOT com> <CAGHpTBJHXXE6YUXjEX8wtE9wnX_wCz5HhrDKsJ_Dz2z1_f4LuQ AT mail DOT gmail DOT com> <YJQrCvv79bHcH3Rz AT calimero DOT vinschen DOT de> <CAGHpTBJ5L1Y4RU+n7PVr6vRCeEBkFPUgnVa8JGZDKcGt7n7JBQ AT mail DOT gmail DOT com> <YJWvMVkkiqy4rmBc AT calimero DOT vinschen DOT de> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 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 Precedence: list List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com> List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>, <mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> 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> From: Andrey Repin via Cygwin <cygwin AT cygwin DOT com> Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin <anrdaemon AT yandex DOT ru> Content-Type: text/plain; charset="cp1251" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 14C7KCkG028382 Greetings, Corinna Vinschen via Cygwin! > I reworked the code handling native symlinks to handle virtual drives > as well. It might even be a tiny bit quicker now. > The changes have a behavioral change, but I think this is for the > better: Virtual drives are not treated as drives anymore, but as > symlinks. Given they are just pointers to other drives or directories, > tha't much closer to reality. I. e., in case of my above virtual drive > T:, what you'll see in the /cygdrive dir (unless your cygdrive prefix is > / only) is this: > $ ls /cygdrive > $ ls -lG /mnt > total 16 > d---r-x---+ 1 TrustedInstaller 0 Apr 29 21:07 c > drwxr-xr-x 1 corinna 0 Dec 31 1979 e > lrwxrwxrwx 1 corinna 32 May 6 20:43 t -> /cygdrive/c/cygwin64/home/corinna/tmp > I uploaded new developer snapshots to https://cygwin.com/snapshots/ > for testing. Interesting effect. I do have fstab entry none / cygdrive noacl,binary,nouser,posix=0 0 0 And this is what I see with and without changes. (3.2.0) $ ls -ld /proc/cygdrive/{a..z} 2> /dev/null drwxr-x--- 1 anrdaemon None 0 ��� 22 23:12 /proc/cygdrive/c drwxr-x--- 1 anrdaemon None 0 ��� 30 18:05 /proc/cygdrive/d drwxr-x--- 1 anrdaemon None 0 ��� 22 23:11 /proc/cygdrive/e drwxr-x--- 1 anrdaemon None 0 ��� 11 21:27 /proc/cygdrive/w drwxr-x--- 1 anrdaemon None 0 ��� 14 2018 /proc/cygdrive/y drwxr-x--- 1 anrdaemon None 0 ��� 12 03:59 /proc/cygdrive/z (snapshot) $ ls -ld /proc/cygdrive/{a..z} 2> /dev/null drwxr-x--- 1 anrdaemon None 0 ��� 22 23:12 /proc/cygdrive/c drwxr-x--- 1 anrdaemon None 0 ��� 30 18:05 /proc/cygdrive/d drwxr-x--- 1 anrdaemon None 0 ��� 22 23:11 /proc/cygdrive/e drwxr-x--- 1 anrdaemon None 0 ��� 11 21:27 /proc/cygdrive/w lrwxrwxrwx 1 anrdaemon None 35 ��� 14 2018 /proc/cygdrive/y -> //HOSTING64.DARKDRAGON.LAN/wwwroot/ lrwxrwxrwx 1 anrdaemon None 35 ��� 12 03:59 /proc/cygdrive/z -> //DAEMON1.DARKDRAGON.LAN/anrdaemon/ I think I like these changes. Thank you very much. -- With best regards, Andrey Repin Wednesday, May 12, 2021 10:04:43 Sorry for my terrible english... -- 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