From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-eopbgr760110.outbound.protection.outlook.com [40.107.76.110]) by sourceware.org (Postfix) with ESMTPS id 77A103857C43 for ; Sun, 13 Sep 2020 15:35:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 77A103857C43 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CBFtBitewNHCXZ/kIIGjWxzLNu3x/isB+hWzGrfrpyhz1UyL/ZJvtu4c6ERDU6TuQrJW8qtooeQsLxmPlirENyPZOziMMPpgH87BXBwOze+1cBPea/YJH7VnvfNuPqV5c3Aq2IU3VKbc3FqhJ3pGCFdP5+H0gcsRxaQAARcwiqZ7U53BMLdzAT11B8aHnouS3g1KxYGPzIj6GRB1ZZZJfAsBzFSG4m5FkGgDZXSfw8ugHTez6b+IeMLK23Egg/EsvtDAHkgUZRyIWIN1SzcAdRlFD87oQ0G9pAqWJpVtJb8vnMnxyPfCQ0Cx93puKySv8kGBwMqIMaUhG5GSVYftfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KESoOt5PxsrrRMA5z4AP3mHfGv2DhprbAHEgZU3UhTQ=; b=QHx2XXmHfbMNOc6TxgMmNYX+NWpyQXaIRLXL6z0luxCHjqfnL/eFq6TOsv1mgivk9XlxuH3C5McZDyBr/hLTRIogVLGqN9p+/4j6D3gZUCqgZFBElW5NiCoxQBCJjR33GQ7TTvzoO4DBDfGJhoGrEa6LCqn7Ftqcu2yhz6rc/MDCQQioB4qQkz9780rgXaEpEKzJDdvpaRXDlIshpn4Xp6RPHtqvvwgCZmsKYGLNDJFZ9QfOxrnzbO/sO3Qta+x16Yus5UbAdHgsacVJA+uIqXV/Duff0NTVZ7m5n6RH3Gdb106mvAGRa199n63zKWdzE/PL8DRMNIn+4ysRnG8TQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none Received: from MN2PR04MB6176.namprd04.prod.outlook.com (2603:10b6:208:e3::13) by MN2PR04MB5885.namprd04.prod.outlook.com (2603:10b6:208:a5::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Sun, 13 Sep 2020 15:34:59 +0000 Received: from MN2PR04MB6176.namprd04.prod.outlook.com ([fe80::c144:d206:c369:af44]) by MN2PR04MB6176.namprd04.prod.outlook.com ([fe80::c144:d206:c369:af44%7]) with mapi id 15.20.3348.019; Sun, 13 Sep 2020 15:34:59 +0000 Subject: Re: Issues with removing cygwin installed TTF font files To: cygwin@cygwin.com References: <2183c849-4ba5-5a83-a6c1-e061946420e1@Michael-Soegtrop.de> From: Ken Brown Message-ID: <96505190-e7bf-6613-3736-194074d49a6a@cornell.edu> Date: Sun, 13 Sep 2020 11:34:57 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 In-Reply-To: <2183c849-4ba5-5a83-a6c1-e061946420e1@Michael-Soegtrop.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MN2PR01CA0049.prod.exchangelabs.com (2603:10b6:208:23f::18) To MN2PR04MB6176.namprd04.prod.outlook.com (2603:10b6:208:e3::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2604:6000:b407:7f00:ad88:231:3482:1c42] (2604:6000:b407:7f00:ad88:231:3482:1c42) by MN2PR01CA0049.prod.exchangelabs.com (2603:10b6:208:23f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16 via Frontend Transport; Sun, 13 Sep 2020 15:34:58 +0000 X-Originating-IP: [2604:6000:b407:7f00:ad88:231:3482:1c42] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8445f7cc-77b8-4a3e-382e-08d857fa92cd X-MS-TrafficTypeDiagnostic: MN2PR04MB5885: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +98oDb4Aje6jeyGBJudgzfXFhVsoTZUfnIhkx6jNImzcQIadeq6OUABKmFTLJOpyCxHBJ+UKuLSQYHim72x/2N5mF2bJNMT9YCtjej6imwWZiXiMS/nH06TXohAoF7VOXtnH3NPEuUx+yQCD5Ivx0VfNK86317KtpIPP3+HUGkykNn6NuDbjeBHrNshOrjtQJdnWe+iFaXrl7IcKQF0lDIgI7NI9FQQ4nFiGZIHF0VF/pnwLB6sZZhJ8FOSlpev47AZIs2rErOlV4e1MpgqQ8exHdNPFnvSC7Jam5aVvC5J35X91WAJKCR5DVNh7KPOAvWEd48ePWphswLvxcRC5jHwbB+CtNjz3p1LUDm+JWVwwYrwHDBWQZykfGMm5hY97kvR7yjG7Ejf4/hpFd6qFHLLiSQAznshPdZtYb6lihc0Vzzo7MXQ2tTsiMsETJFq46rj3uYyVh+a1jQkLWHYoWg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR04MB6176.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(136003)(396003)(366004)(376002)(346002)(75432002)(86362001)(966005)(2906002)(16526019)(186003)(6486002)(316002)(5660300002)(53546011)(31696002)(45080400002)(478600001)(36756003)(786003)(6916009)(8936002)(52116002)(2616005)(8676002)(66946007)(66556008)(66476007)(83380400001)(31686004)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: MavweZbIx5y++zBbyQMQPzh9oZcUUEFMphoAtSDWNxqVUWRs7IcDm2gyrn7RRxRWm4p1plYX3GnQLc19MkVN7TR3/QR6E6SVzrJ64ugx3N76E3vEg8q8ErivyQTX4I2iHuKeMztYCX6TpYmAzaoM7aKXu1cAwLaTxD4DwvqBkzmee7+O6lHFbirkrn2dQ8lnHWI+ZkmloVqLEu5PjlisPc6nmS22Ti0uIZJFy8PJv5V5ahReQOp7uRc5/ZBp75ktySO3sKIRPabYrdLXhsoxV3e40sCoKt8+i1czce0AZkXbl51i2gQQpD8OzUinUpebmTiFsy0rKkg2TtfAyS3iLdITzKJYnaW6DfiqYrFZ0MbUOb1i1t1gGB68QkuzRv5CQ2r34Tf0BogmrMZDOHAhlGrgPNTseRfFoCj73xfb186OIDHdqEFWCBz3TDlYE16owZ2Zkuo1y7o8uTtEYpZIAZ5EZ71/zotR/+0vQUmaeBFQZijhR/DZNrL2gKe1qwuND3Jcv8OgTCunoEnRrhXTezhVgNVQJc1Oc3j/SXVOF2wcnF3qrjWl9Gno4kaCCowDYQL0fFF3a63qQWkCQZHHVHeQQpgr7PddXM1/MFn511m3k1eJcDShIJGaDZsx7X8GzC8HpJiA1nVWMxhhpwgTxtKL5sDQ+pAcAQR+6INPZvr1eyBcEUhUthrUjzURJwQnzH/lr6i69T5NdDX1vb0XMQ== X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 8445f7cc-77b8-4a3e-382e-08d857fa92cd X-MS-Exchange-CrossTenant-AuthSource: MN2PR04MB6176.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2020 15:34:59.2096 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: l1KoDeElMod73dCok3M6RRMQMb9yPk6L0tVVGlF56MrTfjsAZU6nEy0iuKU0IEKuVAOCqzKhNwHYiPYU4evwmw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5885 X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_INVALID, DKIM_SIGNED, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP 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@cygwin.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: , X-List-Received-Date: Sun, 13 Sep 2020 15:35:04 -0000 On 9/13/2020 10:16 AM, Michael Soegtrop wrote: > Dear Cygwin Team and Users, > > since a few months I have issues deleting cygwin installations. In some cases > randomly the /usr/share/fonts/microsoft folder and the TTF files in it remain. > According to DOS dir the folder contains junctions to TTF files - not sure how > this is possible - afaik a junction is for folders. But what I get is this: > > C:\ci\cygwin64_21081_16603\usr\share\fonts\microsoft>dir >  Volume in drive C is SYSTEM >  Volume Serial Number is 70C2-07FA > >  Directory of C:\ci\cygwin64_21081_16603\usr\share\fonts\test > > 02/07/2020  13:52              . > 02/07/2020  13:52              .. > 01/07/2020  11:47         ahronbd.ttf [...] > 01/07/2020  11:47         andlso.ttf [...] > 01/07/2020  11:47         angsa.ttf [...] > 01/07/2020  11:47         angsab.ttf [...] > 01/07/2020  11:47         angsai.ttf [...] > 01/07/2020  11:47         angsau.ttf [...] > 01/07/2020  11:47         angsaub.ttf [...] > 01/07/2020  11:47         angsaui.ttf [...] > 01/07/2020  11:47         angsauz.ttf [...] > : > > Interesting is that this does not happen always. I am working on a open source > project and our CI installs and removes cygwin about 100 times a day. I see this > issue about 20 times per month - distributed over all of our CI runners. Maybe > Windows gives the TTF file some special handling every now and again, but I > checked the registry and there is nothing pointing to this cygwin folder, except > the cygwin installation registry. > > I couldn't find any method to remove these files. I made sure I have delete > rights and that nobody has a lock on these files, but still whatever I tried > (Explorer, cygwin admin console, DOS admin console, reboot a few times, chkdsk, > google) failed. > > If you have an idea that could help me to delete these files reliably and/or > avoid this situation, it would help me a lot! /usr/share/fonts/microsoft contains symlinks to TTF files: $ ls -al /usr/share/fonts/microsoft/ total 158 drwxr-xr-x+ 1 kbrown-admin None 0 2019-07-31 11:36 ./ drwxr-xr-x+ 1 kbrown-admin None 0 2018-09-30 17:18 ../ -rw-r--r-- 1 kbrown-admin None 36 2019-07-31 11:36 .uuid lrwxrwxrwx 1 kbrown-admin None 26 2018-09-28 15:25 arial.ttf -> /c/Windows/Fonts/arial.ttf lrwxrwxrwx 1 kbrown-admin None 28 2018-09-28 15:25 arialbd.ttf -> /c/Windows/Fonts/arialbd.ttf lrwxrwxrwx 1 kbrown-admin None 28 2018-09-28 15:25 arialbi.ttf -> /c/Windows/Fonts/arialbi.ttf [...] What Cygwin symlinks look like to Windows tools depends on the filesystem, the value of the CYGWIN environment variable, and other factors. See https://www.cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks Ken