X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E537C3835831 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1620807247; bh=l5Ff4FFhE/+nisgNe0xFS48iY0YQLu/bC1t+1EIhWB4=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=DkFHXPADcOAm08SRqWFFbar8m7mxRavlzTpJi1KNLawqNeE9Rbh8Tln5K/NBh0S5u QQOlEbQTzhJ5g0FG9sa+M1rGAtLi5AmXFVzh2uov6yiY+5jrdJrHTb0oumPzz6sd1N uR21sNDJKyoTzpKDUgUbuhjwcqR0XdcQ1+W9uoWQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 17E7D3860C37 Date: Wed, 12 May 2021 10:14:00 +0200 To: cygwin AT cygwin DOT com Subject: Re: realpath issue with native[strict] symlinks Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: <1515122016 DOT 20210512101026 AT yandex DOT ru> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1515122016.20210512101026@yandex.ru> X-Provags-ID: V03:K1:w78BM2bYSZIxq4P+nOYLtwtxUnWycpES30N+nhcB+XK2uEWUZ+o 1zMT9gkojQxhUPaDizmqG+nemoo6+3u7IkIpSXhgLnTd0NxPaAvdhUHcyJDzAykZuKHO5z+ A6nLl08z0b986GuyBZ0SMgnCUcE0EEOFyUgolRmvzyr2/6a2lkenfDic/iLJMAjRVyMK2BI qyHXQbda8P+L8/NIToOcg== X-UI-Out-Filterresults: notjunk:1;V03:K0:cyKF9knEVkU=:DfClMPr/ydjmDHKkaYlssb cCHtp6dUpxYsBoff0FpYx5vC+n72q7FE+b+jvBf2Y25dRGJMDx/hYTiVWCJjrXDZ4y0LJIcl3 m6kldy40wlLUKGn9VumtfLvv5WmShhOE2izpDiKpn7cPUmVE7Y8dISdEU6TFMaqvI+H3kSaIM R1b/0SMcLH3hDRUdDV4vhxlI0/+k0zDrPWnqS5e9snGtnli9G7b+OVIlZyopX/0CeWuAADJCJ kvTz53KH0S9h5PlNuvFjUKd5sBpLb49xGNSheJi3QCB8nYkzZRuhsIEaBJKC9bPb28Hnn2PO5 HMMKINSt+Jmg8RPkZCFwO0i2+VC+1YxqzSspqp4AJyD6cXYNCbY33s6cOVmf2PFs4dX9h4IhH 2Vy5+miZwZOT0OQgwFFz/55hV3VRIB58x8Q1H0yLFpw9ihMt5CI+qEVmgdizArn1KGRQtepvn gf9/T53dNwLNWk9tlC+kq8yeU8JjRUtiJM3sbqxMd9BTufvZX3kxmB9s/yHhKF3svOvhGrdc+ 0w4PvIshmcGHj7faIn+CjE= X-Spam-Status: No, score=-100.3 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 14C8E8GJ031987 On May 12 10:10, Andrey Repin via Cygwin wrote: > 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/ Great, this is the Tip of the Day! > I think I like these changes. > Thank you very much. You're welcome. Corinna -- 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