From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) by sourceware.org (Postfix) with ESMTPS id A3E403858C27 for ; Wed, 24 Nov 2021 17:31:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A3E403858C27 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=systematicsw.ab.ca Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTP id pvVvmEN2hlW5qpw7NmCh4s; Wed, 24 Nov 2021 17:31:37 +0000 Received: from [192.168.1.105] ([68.147.0.90]) by cmsmtp with ESMTP id pw7MmutZ0d5Unpw7MmFqU0; Wed, 24 Nov 2021 17:31:37 +0000 X-Authority-Analysis: v=2.4 cv=FrgWQknq c=1 sm=1 tr=0 ts=619e76f9 a=T+ovY1NZ+FAi/xYICV7Bgg==:117 a=T+ovY1NZ+FAi/xYICV7Bgg==:17 a=IkcTkHD0fZMA:10 a=vRD_ZD7ZAAAA:8 a=pBmDnMdgE8v8fnduLqwA:9 a=QEXdDO2ut3YA:10 a=conWYlKDgtMA:10 a=99GKL9p9FxAA:10 a=t8u3pjWZ14V6TLBU7GbE:22 Message-ID: <4be058bb-5827-50bd-c65c-5e1c46ddc8b2@SystematicSw.ab.ca> Date: Wed, 24 Nov 2021 10:31:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Reply-To: cygwin@cygwin.com Subject: Re: zp_man-db-update-index.dash creates C:\cygwin64\%SystemDrive% Content-Language: en-CA To: cygwin@cygwin.com References: <645cbf8eca7d4451b1faa017d462235d@severstal.com> From: Brian Inglis Organization: Systematic Software In-Reply-To: <645cbf8eca7d4451b1faa017d462235d@severstal.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfN9Nba1LuoeborhXmcz5V6OCd9M6JrwqghJTLldHRaxk2lDERUkXeeoP6AiMFLZTSlOjnsSgoaRrBd+ZcX1QHk0iIu9fJoBooZxTI13jz+XneJPcILey DMLhxszd0hgc8145abVVczhonpYdt3kedVuTWyxdllIXdq3lY7zR1k5lawHnRXuIEf3b/KEFI/63O4Pf8HBr3myFBRPaZk5hNgY= X-Spam-Status: No, score=-1164.6 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Wed, 24 Nov 2021 17:31:39 -0000 On 2021-11-24 02:06, Миронов Леонид Владимирович via Cygwin wrote: > Recently when cygwin setup runs windows 10 started creating "C:\cygwin64\%SystemDrive%\ProgramData\Microsoft\Windows\Caches" folder - exactly like that, with %SystemDrive% not expanded, containing the following files > cversions.2.db > {104937D1-3D41-4EB0-BE48-1725A96CC3A1}.2.ver0x0000000000000001.db > {42542F41-6950-48FC-BDFB-3961A7C4A653}.2.ver0x0000000000000001.db > {6AF0698E-D558-4F6E-9B3C-3716689AF493}.2.ver0x0000000000000001.db > {DDF571F2-BE98-426D-8288-1A9A39C3FDA2}.2.ver0x0000000000000001.db > {FAC7F33B-D66E-413B-9358-52C759023A9D}.2.ver0x0000000000000001.db > and logs a number of similar messages to application windows log from Property System > Omitted duplicate property. > Keeping: 'Microsoft.OneNote.TaggedNotes' ({641064BA-9329-47E6-8F36-5FA81AA461A0} 3) Publisher: 'Microsoft' Product: 'Windows' URL: 'windowspropertydescriptions' > Omitting: 'Microsoft.OneNote.TaggedNotes' ({641064BA-9329-47E6-8F36-5FA81AA461A0} 3) Publisher: 'Microsoft' Product: 'OneNote' URL: 'custom.propdesc' > Turned out that the culprit is the /etc/postinstall/zp_man-db-update-index.dash script which runs at the end of every setup session, although I couldn't figure why: it just runs mandb with some fancy redirection and nothing untoward happens when it is run manually and with admin privileges, but the folder in question was never created until I ran mandb to create man index which for some reason was not created automatically during installation, and when /var/cache/man/index.db is removed which effectively disables this script this folder is not created. I am baffled. I noticed that too but could never trace it back to a script. Good work. That may happen because mandb does some undocumented processing, including scanning the system for "cat#..." directories and "handles" them, which may include moving them to / root so they will be noticed if they are not part of a man hierarchy, or removes empty "cat#..." directories. Windows uses a number of cat... folders for downloaded components which man can mess around with. I submitted a mandb bug report requesting that undocumented behaviour be documented, and mandb limit its searches, or suppress cleanup (e.g. -s, --no-straycats Do not spend time looking for or adding information to the databases regarding stray cats [whatever they are, also undocumented, possibly relevant]) or suppressed under Windows, as it could affect Windows components or the system: https://www.majorgeeks.com/content/page/catroot_and_catroot2_folder_explained.html but I don't remember if it was even addressed. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.]